Make Changes to AWS Infrastructure Using Terraform

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Hey there, Gurus! Welcome to the lab! This lab will demonstrate how easy it is to manage and destroy infrastructure in AWS with Terraform. We will first deploy the lab environment, and then we will make a couple changes to the Terraform configuration and redeploy. We will then confirm the changes were made and then delete all of the resources we deployed. Let’s get started!

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Set Up the Environment

1) In the terminal, once logged into your instance, change to the lab-managing-aws directory.
2) Copy your ami and your subnet_id from your resource_ids.tx file, and update the main configuration file.
3) Initialize the working directory.
4) Apply the Terraform configuration.

Deploy Configuration Changes

1) In the terminal, edit the main configuration file.
2) Change instance_type to t3.micro.
3) Change the tag name to Robin.
4) Apply the Terraform configuration.
5) Verify the change in configuration.

Delete All Resources

1) In the terminal, delete all the resources.
2) Confirm the deleting of resources.

Additional Resources

You are an admin who supports one of the largest online comic book retailers in the world. You are one of a handful of admins who have been assigned to use Terraform to manage the company's cloud deployments. You are being asked to make a couple changes to the Terraform configuration and redeploy. You will first need to make a change to the instance type and then make a change to the tag name. You will then need to confirm the changes were made and then delete all of the resources you deployed after testing your configuration.

Configuration used in this lab: Terraform Config Files: https://raw.githubusercontent.com/linuxacademy/content-terraform-2021/main/lab-managing-aws.zip

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?