hands-on lab

Provisioning an Amazon ECS Cluster Using Terraform

Difficulty: Intermediate
Duration: Up to 45 minutes
Students: 326
Rating: 5/5
On average, students complete this lab in25m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Terraform is an infrastructure-as-code tool that makes handling infrastructure more straightforward and manageable. A Terraform module is a collection of configuration files that encapsulate groups of resources dedicated to one task. Modules can be used to package and reuse resource configurations, making it easier to manage larger application components like an Amazon ECS Cluster.

In this lab, you will provision an Amazon ECS Cluster into an existing Amazon VPC.

Learning objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Define a Terraform module that deploys Amazon ECS resources
  • Apply an Auto Scaling Group Policy to respond to ECS metrics
  • Deploy an Amazon ECS Cluster into an existing Amazon VPC using Terraform

Intended audiences

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Amazon Elastic Container Service
  • Terraform

The following content can be used to fulfill the prerequisites:

Updates

December 16th, 2024 - Resolved an issue preventing the lab from deploying

Environment before

Environment after

Covered topics

Hands-on Lab UUID

Lab steps

0 of 5 steps completed.Use arrow keys to navigate between steps. Press Enter to go to a step if available.
  1. Configure Terraform AWS Credentials
  2. Reviewing the Existing AWS Infrastructure
  3. Defining an Amazon ECS Cluster Using Terraform
  4. Applying CloudWatch Monitoring and Auto Scaling to an ECS Cluster With Terraform
  5. Deploying and Testing an Amazon ECS Application