Part1 (CDK Construct Library)
Part2 (CDK App)
Part3 (CDK Pipelines App)
1- Add Gitpod Secrets
AWS_ACCOUNT_NUMBER
AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
2- Create Project locally or launch using Gitpod
mkdir projen-cdk-tutorial-part-3
cd projen-cdk-tutorial-part-3
code .
alias cdk="npx cdk"
awscdk-app-ts
3- Configure Project
Add your code to .projenrc, This is the only file that will be modified. During projen it will scaffold your whole project including what you are reading right now ! :)
4- Execute projen
pj
5- Commit & Push
git add .
git commit -m "Commit"
git push
6- Deploy CDK Pipelines
npx cdk bootstrap aws://$AWS_ACCOUNT_NUMBER/$AWS_DEFAULT_REGION
cdk deploy
7- Deploy ECS Stack via CDK Pipelines
git remote add codecommit "<YOUR_CODECOMMIT_REPO>"
git add .
git commit -m "Commit"
git push codecommit master
The Apache-2.0 license