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
- From the AWS Management Console Dashboard go into OpsWorks.
- Click Add Your First Stack.
- Enter the Stack Name.
- 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:
- Click Add a Layer.
- Select the Layer type (PHP App Server) from the dropdown.
- Click Add layer.
- Add an Instance
- Click Instances.
- Update Instance Size to t2.micro.
- Click Add Instance.
- Add Application
- Choose Apps in left navigation.
- Click Add app.
- Add an app Name.
- Select None for Data Source Type.
- Choose Git and add the GitHub repository link.
- Click Add app.
- Click deploy.
- Verify Application
- In the left navigation click on Instances.
- Copy the public IP address.
- Paste the public IP address into a new browser tab.