Using AWS OpsWorks to Deploy an Application

1 hour
  • 5 Learning Objectives

About this Hands-on Lab

In this hands-on lab we will learn more about the foundational element of OpsWorks, and use it to deploy an application. We will start with the stack, then build Layers, and in one of the Layers we will deploy an instance. Then on that instance, we will deploy an application.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an OpsWorks Stack
  1. From the AWS Management Console Dashboard go into OpsWorks.
  2. Click Add Your First Stack.
  3. Enter the Stack Name.
  4. Click Add Stack.

Note: when creating the ELB, to refresh the defaults in AWS, you may have to go under the advanced section before you are able to proceed.

Create a Layer

After creation of an OpsWorks Stack:

  1. Click Add a Layer.
  2. Select the Layer type (PHP App Server) from the dropdown.
  3. Click Add layer.
Add an Instance
  1. Click Instances.
  2. Update Instance Size to t2.micro.
  3. Click Add Instance.
Add Application
  1. Choose Apps in left navigation.
  2. Click Add app.
  3. Add an app Name.
  4. Select None for Data Source Type.
  5. Choose Git and add the GitHub repository link.
  6. Click Add app.
  7. Click deploy.
Verify Application
  1. In the left navigation click on Instances.
  2. Copy the public IP address.
  3. Paste the public IP address into a new browser tab.

Additional Resources

Please log into the AWS environment by using the cloud_user credentials provided.

Once inside the AWS account, make sure you are using us-east-1 (N. Virginia) as the selected region.

Use this Github repository during the Add Application step: https://github.com/julielkinsfembotit/AWSOpsWorks

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?