Step 4.2: Add PHP App Server Instances - AWS OpsWorks

Step 4.2: Add PHP App Server Instances

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.

Now the load balancer is in place, you can scale out the stack by adding more instances to the PHP App Server layer. From your perspective, the operation is seamless. Each time a new PHP App Server instance comes online, AWS OpsWorks Stacks automatically registers it with the load balancer and deploys SimplePHPApp, so the server can immediately start handling incoming traffic. For brevity, this topic shows how to add one additional PHP App Server instance, but you can use the same approach to add as many as you need.

To add another instance to the PHP App Server layer
  1. On the Instances page, click + Instance under PHP App Server.

  2. Accept the default settings and click Add Instance.

  3. Click start to start the instance.