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

Step 2: Create a Stack

You will use the AWS OpsWorks Stacks console to create a stack. A stack is a collection of instances and related AWS resources that have a common purpose and that you want to manage together. (For more information, see Stacks.) For this walkthrough, there is only one instance.

Before you begin, complete the prerequisites if you haven't already.

To create the stack

  1. Using your IAM user, sign in to the AWS OpsWorks Stacks console at https://console.aws.amazon.com/opsworks.

  2. Do any of the following, if they apply:

    • If the Welcome to AWS OpsWorks Stacks page is displayed, choose Add your first stack or Add your first AWS OpsWorks Stacks stack (both choices do the same thing). The Add stack page is displayed.

    • If the OpsWorks Dashboard page is displayed, choose Add stack. The Add stack page is displayed.

  3. With the Add stack page displayed, choose Chef 12 stack if it is not already chosen for you.

  4. In the Stack name box, type a name, for example MyLinuxDemoStack. (You can type a different name, but be sure to substitute it for MyLinuxDemoStack throughout this walkthrough.)

  5. For Region, choose US West (Oregon).

  6. For VPC, do one of the following:

  7. For Default operating system, choose Linux and Ubuntu 14.04 LTS.

  8. For Use custom Chef cookbooks, choose Yes.

  9. For Repository type, choose Http Archive.

  10. For Repository URL, type https://s3.amazonaws.com/opsworks-demo-assets/opsworks-linux-demo-cookbooks-nodejs.tar.gz

  11. Leave the defaults for the following:

    • Default Availability Zone (us-west-2a)

    • Default SSH key (Do not use a default SSH key)

    • User name (blank)

    • Password (blank)

    • Stack color (dark blue)

  12. Choose Advanced.

  13. For IAM role, do one of the following (for more information, see Allowing AWS OpsWorks Stacks to Act on Your Behalf):

    • If aws-opsworks-service-role is available, choose it.

    • If aws-opsworks-service-role is not available, choose New IAM role.

  14. For Default IAM instance profile, do one of the following (for more information, see Specifying Permissions for Apps Running on EC2 instances):

    • If aws-opsworks-ec2-role is available, choose it.

    • If aws-opsworks-ec2-role is not available, choose New IAM instance profile.

  15. For API endpoint region, choose the regional API endpoint with which you want the stack to be associated. If you want the stack to be in the US West (Oregon) region within the US East (N. Virginia) regional endpoint, choose us-east-1. If you want the stack to be both in the US West (Oregon) region and associated with the US West (Oregon) regional endpoint, choose us-west-2.

    Note

    The US East (N. Virginia) regional endpoint includes older AWS regions for backward compatibility, but it is a best practice to choose the regional endpoint that is closest to where you manage AWS. For more information, see Region Support.

  16. Leave the defaults for the following:

    • Default root device type (EBS backed)

    • Hostname theme (Layer Dependent)

    • OpsWorks Agent version (most recent version)

    • Custom JSON (blank)

    • Use OpsWorks security groups (Yes)

  17. Your results should match the following screenshots except for perhaps VPC, IAM role, and Default IAM instance profile:

  18. Choose Add Stack. AWS OpsWorks Stacks creates the stack and displays the MyLinuxDemoStack page.

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

In the next step, you will add a layer to the stack.