Following AWS CDK stacks are results of my AWS proof of concepts. I'm trying to keep the stacks as simple and straightforward as possible for quick reference in the future.
For the production code use the Construct pattern.
- ECS fargate
- simple dockerized nodeJS server
- Aplication Load Balancer
- ECS scaling
- HTTPS ALB redirect
- custom (sub)domain Route53
yarn cdk deploy FargateStack
- Api Gateway
- SQS
- AWS Integration AG -> SQS
- custom (sub)domain Route53
yarn cdk deploy ApiGatewayStack
I use for Gatsby site build and deploy
- CodePipeline
- CodeBuild (source / build / deploy )
- Github source
- build
- deploy
/public
to S3 bucket - Cloudfront invalidation
- Cloudfront distribution
- HTTPS certificate and Route53 alias
yarn cdk deploy CodeBuildStack
- ApiGateway
- Custom Lambda TokenAuthorizer
- DynamoDB
- Lambdas
- get-all
- create
- get-one
- update-one
- delete-one
yarn cdk deploy ApiLambdaCrudDynamoDBStack
yarn run build
compile typescript to jsyarn run watch
watch for changes and compileyarn run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template