Deploying a Basic Infrastructure Using CloudFormation Templates

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will use CloudFormation to provision a basic infrastructure environment with an EC2 instance. There are many different basic infrastructures you could build with CloudFormation, and this lab is just one example. We will complete several objectives throughout this lab, including creating an EC2 key pair, using a CloudFormation template to deploy a basic infrastructure with an EC2 instance, and finally logging in to the instance via SSH to demonstrate the CloudFormation stack provisioned and deployed the environment correctly.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an EC2 Key Pair and Use the Provided CloudFormation Template to Provision an EC2 Instance
  1. Create the key pair.
  2. Create the stack using the following CloudFormation template and add the newly created EC2 key pair as a parameter. Please Note: Template must be copied into the template tab (on the bottom of the Cloud Formation Dev screen) with JSON selected.
  3. Deploy the sample network configuration stack.
Use the EC2 Public IP Address and the Terminal to Ping the Instance
  1. Log in to the newly created EC2 instance via SSH to verify the CloudFormation template successfully provisioned and deployed a basic infrastructure.

Additional Resources

Log in to the live AWS environment using the credentials provided. Make sure you are in the us-east-1 (N. Virginia) region throughout the lab.

Use this link for the CloudFormation template to provision an EC2 instance.

Open your terminal or use the Linux Academy Cloud Playground terminal; select the Instant Terminal tab.

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


Sign In
Welcome Back!

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