Step 2.2: Add a PHP App Server Layer - Chef 11 - AWS OpsWorks

Step 2.2: Add a PHP App Server Layer - Chef 11

Important

AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.

Although a stack is basically a container for instances, you don't add instances directly to a stack. You add a layer, which represents a group of related instances, and then add instances to the layer.

A layer is basically a blueprint that AWS OpsWorks Stacks uses to create set of Amazon EC2 instances with the same configuration. You add one layer to the stack for each group of related instances. AWS OpsWorks Stacks includes a set of built-in layers to represent groups of instances running standard software packages such as a MySQL database server or a PHP application server. In addition, you can create partially or fully customized layers to suit your specific requirements. For more information, see Customizing AWS OpsWorks Stacks.

MyStack has one layer, the built-in PHP App Server layer, which represents a group of instances that function as PHP application servers. For more information, including descriptions of the built-in layers, see Layers.

To add a PHP App Server layer to MyStack
  1. Open the Add Layer Page

    After you finish creating the stack, AWS OpsWorks Stacks displays the Stack page. Click Add a layer to add your first layer.

  2. Specify a Layer Type and Configure the Layer

    In the Layer type box, select PHP App Server, accept the default Elastic Load Balancer setting and click Add Layer. After you create the layer, you can specify other attributes such as the EBS volume configuration by editing the layer.