A repo hosting some sample cdk stacks built while learning aws cdk.
Resources:
https://docs.aws.amazon.com/cdk/latest/guide/ https://cdkworkshop.com
Lessons learned:
cdk bootstrap
is required to start, which creates an S3 bucket for holding infra state.- Non-empty DynamoDB table is not removed upon
cdk destroy
cdk destroy
is not graceful with all resources - security groups and subnets linked to a RDS Postgres instance could not be destroyed since the postgres instance destruction was skipped and it depended on them. Had to remove DB instance and a few other resources by hand.