hands-on lab

Provisioning an Amazon ECS Cluster Using Terraform

Intermediate
45m
160
5/5
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.
Lab 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:

Environment before
Environment after
About the author
Avatar
Jun Fritz
Cloud Labs Developer
Students
38,431
Labs
103
Courses
1
Learning paths
6

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

Covered topics
Lab steps
Configure Terraform AWS Credentials
Reviewing the Existing AWS Infrastructure
Defining an Amazon ECS Cluster Using Terraform
Applying CloudWatch Monitoring and Auto Scaling to an ECS Cluster With Terraform
Deploying and Testing an Amazon ECS Application