Explain it simpler
CloudFormation lets you describe your AWS setup in a text file, called a template, and AWS builds everything in that file for you as one group, called a stack. You can leave blanks in the template, called parameters, to fill in when you deploy. After building, a stack can hand back useful results, called outputs, and can even share them with other stacks. Before changing a running stack, you can ask for a preview, called a change set, that lists exactly what will be added, changed or replaced. If your template points to code on your own computer, a packaging command uploads that code to S3 first. It is like a building blueprint, with a foreman who shows you a list of planned demolitions before starting work.
Late on a Friday at Cedar Ridge Insurance, Dana pushes a small template change: she renames the partition key on the claims table to fix a typo. The pipeline shows a green check on the build, and the deploy stage starts. Ten minutes later a teammate messages: the claims table is empty. CloudFormation did exactly what the template asked, which was to replace the table with a new one. Meanwhile, another team cannot delete an old network stack because something called an export is still in use. Dana wonders how she could have seen the replacement coming, and how stacks are supposed to share values safely. What tools would have warned her before it was too late?
AWS CloudFormation is AWS's infrastructure as code (IaC) service. You describe resources in a template written in YAML or JSON, and CloudFormation creates, updates and deletes them together as a stack. It works out the order from dependencies, creates resources in parallel where it can, and rolls back if something fails, so you never end up half-built. AWS SAM and the AWS Cloud Development Kit (CDK) both produce CloudFormation templates in the end, which is why CloudFormation concepts appear throughout the Developer Associate exam.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.