version: 0.2 phases: install: runtime-versions: nodejs: 14 commands: - echo Build started on `date` - cd $CODEBUILD_SRC_DIR - cd frontend-infrastructure - echo installing aws cdk.. - npm install aws-cdk -g finally: - pwd build: commands: - echo Deploying cdk infra for frontend.. - cdk --app cdk.out deploy serverless-web-application-frontend --require-approval never