Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Refactoring Terraform - CloudCasts - Scaling EC2

Refactoring Terraform - CloudCasts - Scaling EC2

Slides from the CloudCasts course "Simple Auto Scaling", where we discuss refactoring our Terraform configuration in a way that allows us to run multiple environments.

Chris Fidao

October 05, 2021
Tweet

More Decks by Chris Fidao

Other Decks in Technology

Transcript

  1. Refactoring Terraform CloudCasts

  2. 1 repository, 2 CI/CD pipelines!? CodeBuild Staging CloudCasts CodeBuild Production

    Artifact Artifact CodeDeploy CodeDeploy
  3. 1 repository, 2 CI/CD pipelines!? CodeBuild Staging CloudCasts CodeBuild Production

    Artifact Artifact CodeDeploy CodeDeploy OVERLAPPING DEPLOYS 😭
  4. 1 Pipeline, 2 Environments CloudCasts CodeBuild Artifact CodeDeploy Staging CodeDeploy

    Production
  5. Terraform Setup Staging - CodeDeploy, ASG, ALB CloudCasts Production -

    CodeDeploy, ASG, ALB Shared - CodeBuild, Artifact Bucket