Management

AWS CloudFormation and CDK

CloudFormation provisions infrastructure from templates; CDK defines infrastructure in familiar programming languages and synthesizes templates.

How it works

AWS CloudFormation manages AWS resources from declarative JSON or YAML templates deployed as stacks. The AWS Cloud Development Kit (CDK) lets developers define infrastructure in programming languages such as TypeScript or Python, then synthesize CloudFormation templates for deployment. This supports versioning and repeatable infrastructure, but configuration and changes still need review before they are applied.

When to use it

Choose it when the requirement is reproduce AWS infrastructure consistently from version-controlled definitions.

Real-world example

A team uses TypeScript and AWS CDK to define networking and servers for an application. Its deployment process synthesizes a CloudFormation template and updates a test stack, then applies the reviewed configuration to production.

Common pitfall

Changing resources directly outside CloudFormation can create drift from the template. Check for drift and incorporate appropriate changes into the infrastructure definition to avoid unexpected update results.

Often confused with

Compare its service boundary with AWS Systems Manager; choose from the workload requirement.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning