/cdk-iac-learning

A repo hosting some sample cdk stacks built while learning aws cdk.

Primary LanguageRuby

cdk-iac-learning

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:

  1. cdk bootstrap is required to start, which creates an S3 bucket for holding infra state.
  2. Non-empty DynamoDB table is not removed upon cdk destroy
  3. 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.