Skip to content

AymanZahran/projen-cdk-tutorial-part-3

Repository files navigation

License Gitpod ready-to-code build release docker npm version PyPI version NuGet version

Part2 (CDK App)

License Gitpod ready-to-code build

License Gitpod ready-to-code build

Part 3

projen-cdk-tutorial-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

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

projen-cdk-tutorial-part-3-build

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

projen-cdk-tutorial-part-3-stack

projen-cdk-tutorial-part-3-pipeline-1

projen-cdk-tutorial-part-3-pipeline-2

projen-cdk-tutorial-part-3-pipeline-3

License

The Apache-2.0 license

References

About

Using Projen to Build CDK Pipelines To Launch Fargate App

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published