CloudFormation
- Infrastructure as code
- Free of charge but pay for the underlying service
- Can see and estimate resources cost using template
- Create many stacks for many apps, and many layers
- VPC Stacks
- Network Stacks
- App stacks
- Stacks are identified by name
- deleting a stack deletes every single artifact was created by CloudFormation
- Templates are uploaded to S3 and referenced in CloudFormation
- Can't edit previous template. Have to upload new version of template to AWS
- Editing CloudFormation template
- Manual
- use CloudFormation Designer
- use web console to input parameter
- Automated (recommended)
- Edit using YAML
- Use AWS CLI to deploy template
- Manual
- Building Blocks
- Components
- AWS Certified Developer (DVA-C01)/CloudFormation/Resources (mandatory): AWS resource
- in the format of
AWS::product-name::datatype-name
- in the format of
- Parameters: inputs for template
- Mappings: static variables for template
- Outputs: References to what have been created
- Conditions: List of conditions to perform
Metadata
- AWS Certified Developer (DVA-C01)/CloudFormation/Resources (mandatory): AWS resource
- Helpers
- Components