

This is required so you can pass through the credentials. Have the AWS CLI configured in your Terminal of choice.For this example, I am running Terraform from my MacBook.

Clone the repo from step one into VS Code to complete this task. I am using VS Code which is installed on my Mac. GitHub account with a repository available to store your Terraform code.Create an ECS cluster using the docker image with Terraform.Pull a CentOS image from the Docker registry.Your team needs you to deploy a Docker container with a CentOS image. The app is packaged as a container and you specify the specs you need then you are off to the races! This is one of the many “serverless” computing options available in AWS and will be utilized in this project.

With Fargate, you are no longer required to provision EC2 instances and configure them. This is a service that you can use with Amazon ECS to run your containers without having to manage the servers underneath. tf files this week to step away from the “monolithic” setup.įor the ECS cluster, we are going to deploy AWS Fargate. I am also going to utilize multiple Terraform. As I step into my second week with Terraform, this project is an extension of what I have built previously. In this example, we will utilize a CentOS Docker image pulled from the Docker Registry and deploy an ECS cluster within AWS. Containers are a lightweight solution to deploy applications and OS images.
