Deploying a Basic Infrastructure Using CloudFormation Templates

Get Started
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. Navigate to EC2.
  2. On the left-hand menu, click Key Pairs.
  3. Click Create Key Pair, and add a name. Remember to save this information somewhere safe.
  4. Navigate to CloudFormation.
  5. Click Create stack.
  6. Copy and paste the provided CloudFormation template, and add our 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.
  7. Deploy the sample network configuration stack.
Use the EC2 Public IP Address and the Terminal to Ping the Instance

Use the Linux Academy Cloud Playground terminal or your own terminal to log in to our newly created EC2 instance via SSH to verify our CloudFormation template 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.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?