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
  • Building Blocks