Create AWS Resources with Terraform

Beginner

134 students completed the lab in ~18m

Total available time: 30m

58 students rated this lab!

Lab Overview

Terraform is a tool for declaring and managing infrastructure as code. With Terraform you can write declarative configuration files, view execution plans, and apply plans to realize the infrastructure declared in the configuration files. An important advantage of Terraform is that is supports over 100 resource providers including the major public cloud providers, such as Amazon Web Services, Microsoft Azure, and Google Cloud Platform. In this Lab, you will learn the basics of working with Terraform and create an Amazon Virtual Private Cloud (VPC) with Terraform.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Install Terraform on Linux
  • Configure Terraform providers
  • Create AWS resources with Terraform

Lab Prerequisites

You should be familiar with:

  • Working at the command-line in Linux
  • Amazon VPC basics

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:

 

Follow these steps to learn by building helpful cloud resources

Logging in to the Amazon Web Services Console

Your first step to start the Lab experience

Connecting to the Virtual Machine using SSH

Create a secure connection to a remote machine

Installing Terraform

Install Terraform on a Linux host

Configuring Providers in Terraform

Create and initialize your working directory with a Terraform configuration file

Creating an AWS Resource with Terraform

Create an Amazon Virtual Private Cloud resource with Terraform