Working with CloudFormation templates
To deploy a stack of resources using CloudFormation, you must first create a stack template. The template describes the resources that you want to provision in your CloudFormation stack. The two template formats are JSON and YAML. If you're unfamiliar with JSON or YAML, you can use AWS Application Composer, which provides a drag-and-drop interface for building templates in the console. For more information, see Application Composer.
The following topics show you how to use the different parts of a CloudFormation template and how they work together. You'll also learn how to use custom resources and macros to add functionality to templates and how to create modules that you can share and reuse across multiple templates. You'll also find example snippets for common resource types and configurations. These can be copied and customized to speed up template development.
Topics
- Templates overview
- Template formats
- Template sections
- Using Application Composer to create templates visually
- Walkthroughs
- Template snippets
- Using IaC generator to generate templates for existing resources
- Custom resources
- Using AWS CloudFormation macros to perform custom processing on templates
- Using modules to encapsulate and reuse resource configurations
- Perform ECS blue/green deployments through CodeDeploy using AWS CloudFormation
- Using regular expressions in AWS CloudFormation templates