Skip to content

Terraform setup to provision Containers via ECS with Blue/Green Deployment

Notifications You must be signed in to change notification settings

thiduzz/terraform-ecs-fargate-boilerplate

Repository files navigation

Terraform ECS Fargate Boilerplate

This is a personal boilerplate to enable me to quickly provision and destroy my personal projects for testing in a remote environment.

Installation

  • Install Terraform by clicking here and following the instructions.
  • Install AWS CLI by clicking here and following the instructions.
  • Configure your AWS CLI configurations - the project assume that you are using the "default" profile of AWS CLI.

Run Locally

  1. Clone the project
  2. Go to the project directory
  3. Install AWS Provider
  terraform init
  1. Switch the image name you want to provision (container.tf within ecs-task-env-test)
    • You may utilize the sample Nginx Dockerfile to generate a Nginx container for testing
  2. Apply the changes to the AWS Infrastructure
  terraform apply

Optimizations

  1. Introduce local variables to the .tfs
  2. Introduce CodeDeploy/CodeBuild/Pipeline

License

MIT

About

Terraform setup to provision Containers via ECS with Blue/Green Deployment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published