A repository that contains AWS CDK code examples written in Typescript for my blog https://towardsthecloud.com
To run a Typescript example, execute the following:
$ npm install -g aws-cdk
$ cd EXAMPLE_DIRECTORY
$ npm install
$ cdk synth
$ cdk deploy
Then, to dispose of the stack/s afterwards
$ cdk destroy
AWS CDK Example | Description | Blogpost link |
---|---|---|
application-load-balanced-fargate-service | Create an Application Load Balanced Fargate Service in AWS CDK | Click here |
custom-role-lambda-function | Create a custom IAM role for an AWS Lambda function | Click here |
aws-cdk-dependson-relation | Create a DependsOn relation between resources in AWS CDK | Click here |
openid-connect-bitbucket | Create a Bitbucket OpenID Connect (OIDC) provider in AWS CDK | Click here |
openid-connect-github | Create a GitHub OpenID Connect (OIDC) provider in AWS CDK | Click here |
scheduled-fargate-task | Create a Scheduled Fargate Task example in AWS CDK | Click here |
share-resources-across-stacks | Create a stack where you share resources to another stack | Click here |
If you found these AWS CDK examples helpful, please consider showing your support by buying me a coffee.