Skill 2.1.1
Composing and deploying IaC templates (for example, AWS SAM, AWS CloudFormation, AWS CDK)
Key Concepts
A CloudFormation template has Parameters, Mappings, Conditions, Resources and Outputs, and uses intrinsic functions such as Ref, Fn::GetAtt, Fn::Sub and Fn::ImportValue. Updates go through change sets to preview replacements. DependsOn, CreationPolicy with cfn-signal, and WaitCondition control ordering and wait for instances to finish bootstrapping. Custom resources backed by Lambda handle anything CloudFormation cannot do natively.
AWS SAM adds a transform with shorthand serverless resources, local testing (sam local invoke) and gradual deployments via DeploymentPreference. The AWS CDK defines infrastructure in a programming language with reusable constructs; cdk synth emits CloudFormation, cdk diff shows changes and cdk bootstrap prepares each account and Region with the assets bucket and deployment roles.