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 yourresource_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.