Getting Started with Linux Stacks
Important
The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers.
We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post
In this walkthrough, you will learn how to use AWS OpsWorks Stacks to create a Node.js application environment. When you are done, you will have an Amazon Elastic Compute Cloud (Amazon EC2) instance running Chef 12, a Node.js HTTP server, and a web app that you can use to interact with Twitter and leave comments on a web page.
Chef is a third-party framework for configuring and maintaining servers, such as EC2
instances, and how apps are deployed and maintained on those servers. If you aren't familiar
with Chef, after completing this walkthrough, we recommend that you learn more about Chef so
that you can take full advantage of all that AWS OpsWorks Stacks has to offer. (For more information,
see the Learn Chef
AWS OpsWorks Stacks supports four Linux distributions: Amazon Linux, Ubuntu Server, CentOS, and Red Hat Enterprise Linux. For this walkthrough, we use Ubuntu Server. AWS OpsWorks Stacks also works with Windows Server. Although we have an equivalent walkthrough for Windows Server stacks, we recommend that you complete this walkthrough first to learn basic concepts about AWS OpsWorks Stacks and Chef that are not repeated there. After you complete this walkthrough, see the Getting Started: Windows walkthrough.
Topics
- Step 1: Complete the Prerequisites
- Step 2: Create a Stack
- Step 3: Add a Layer to the Stack
- Step 4: Specify the App to Deploy to the Instance
- Step 5: Launch an Instance
- Step 6: Deploy the App to the Instance
- Step 7: Test the Deployed App on the Instance
- Step 8 (Optional): Clean Up
- Next Steps
- Learning More: Explore the Cookbook Used in This Walkthrough
- Learning More: Explore the App Used in This Walkthrough