Menu
AWS OpsWorks
User Guide (API Version 2013-02-18)

Step 3: Add a Layer to the Stack

A layer is a blueprint for a set of instances, such as Amazon EC2 instances. It specifies information such as the instance's settings, resources, installed packages, and security groups. Next, add a layer to the stack. (For more information about layers, see Layers.)

To add the layer to the stack

  1. With the MyLinuxDemoStack page displayed from the previous step, for Layers, choose Add a layer:

  2. The Add Layer page is displayed. On the OpsWorks tab, for Name, type MyLinuxDemoLayer. (You can type a different name, but be sure to substitute it for MyLinuxDemoLayer throughout this walkthrough.)

  3. For Short name, type demo (you can type a different value, but be sure to substitute it for demo throughout this walkthrough):

  4. Choose Add layer. AWS OpsWorks Stacks creates the layer and displays the Layers page.

  5. On the Layers page, for MyLinuxDemoLayer, choose Network.

  6. On the Network tab, under Automatically Assign IP Addresses, verify that Public IP addresses is set to yes. If you've made changes, choose Save.

  7. On the Layers page, choose Security:

  8. The Layer MyLinuxDemoLayer page is displayed with the Security tab open. For Security groups, choose AWS-OpsWorks-WebApp, and then choose Save:

  9. The AWS-OpsWorks-WebApp security group is added to the layer. (This security group enables users to connect to the app on the instance later in this walkthrough. Without this security group, users will receive a message in their web browser that they cannot connect to the instance.)

You now have a layer with the correct settings for this walkthrough.

In the next step, you will specify the app to deploy to the instance.