Introduction to AWS CDK, Terraform and Git
Defining infrastructure with the AWS CDK, operating Terraform on AWS, and Git-based infrastructure workflows including CloudFormation Git sync.
- 3 lessons
- Module quiz
CloudFormation templates are not the only way to manage infrastructure as code. The AWS Cloud Development Kit (CDK) defines infrastructure in programming languages such as TypeScript and Python and deploys it through CloudFormation. Terraform manages AWS resources through its AWS provider and keeps track of them in a state file.
Whichever tool is used, the code is kept in Git, which provides history, review and rollback, and CloudFormation Git sync can deploy stacks directly from a repository branch.
What the exam expects
Questions test the CDK workflow and bootstrap errors, removal policies for stateful resources, Terraform state storage and locking in S3, and how Git sync deploys stacks through AWS CodeConnections.
How this module is organised
Running and Troubleshooting the AWS CDK Workflow explains the CDK. Managing AWS Resources with Terraform explains Terraform's provider and state, and Deploying Infrastructure from Git explains repository practices and Git sync.