Creating a Stack in AWS OpsWorks

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating a Stack in AWS OpsWorks
lock
Creating a Layer in AWS OpsWorks
lock
Creating and Deploying an Application in AWS OpsWorks
lock
Deleting a Stack in AWS OpsWorks
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

AWS OpsWorks allows you to orchestrate the separate parts of your application using managed instances of Chef or Puppet to automate operations. The main building block of AWS OpsWorks is a stack. A stack allows you to construct a model of your application with different layers. In a typical application, these can be represented as the web, application, and database layers. 

With AWS OpsWorks you can provision EC2 instances in each layer and configure these instances using Chef to automate repetitive operations like installing and configuring software. This advantage comes from the use of AWS OpsWorks cookbooks, published by AWS. These cookbooks are open source and you can build your own or mix and match to fit the needs of your application. 

In this lab step, you will create an OpsWorks stack that will be used to model a simple PHP application.

 

Instructions

1. In the AWS Management Console search bar, enter OpsWorks, and click the OpsWorks result under Services:

 alt

 

2. Click Go to OpsWorks Stacks:

alt

 

3. To start creating a stack, click Add your first stack:

alt

 

4. Ensure Chef 11 stack is selected for the stack type:

alt

 

5. Configure the following fields:

  • Stack name: Enter 
  • VPC: Select the  VPC
  • Default operating system: Select Amazon Linux 2017.09

You can accept the default values of the fields not mentioned above.

 

6. Click Advanced>> to expand the additional fields and configure the following: 

  •  IAM role: Select aws-opsworks-service-role
  • Default IAM instance profile: Select the instance profile beginning with aws-opsworks-ec2-role

 

7. Click Add stack:

alt

 

Summary

In this lab step, you created an AWS OpsWorks Stack that utilizes Chef 11 and the Amazon Linux operating system.

Validation checks
1Checks
Created the OpsWork Stack

Check that the OpsWork Stack has been created.

AWS OpsWorks