Part1 (CDK Construct Library)
Part2 (CDK App)
Part3 (CDK Pipelines App)
Part 1
Steps
1- Add Github Secrets
TWINE_USERNAME TWINE_PASSWORD NPM_TOKEN NUGET_API_KEY MAVEN_USERNAME MAVEN_PASSWORD MAVEN_STAGING_PROFILE_ID MAVEN_GPG_PRIVATE_KEY MAVEN_GPG_PRIVATE_KEY_PASSPHRASE
2- Create Project locally or launch using Gitpod-Part-1
mkdir projen-cdk-tutorial-part-1 cd projen-cdk-tutorial-part-1 code . alias pj="npx projen" pj new awscdk-construct
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
Part 2
Steps
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-Part-2
mkdir projen-cdk-tutorial-part-2 cd projen-cdk-tutorial-part-2 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 the ECS Stack
npx cdk bootstrap aws://$AWS_ACCOUNT_NUMBER/$AWS_DEFAULT_REGION cdk deploy
Part 3
Steps
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-Part-3
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
Top comments (0)