Step 3.5: Deploy SimplePHPApp, Version 2 - AWS OpsWorks

Step 3.5: Deploy SimplePHPApp, Version 2

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.

The final step is to deploy the new version of SimplePHPApp.

To deploy SimplePHPApp
  1. On the Apps page, click deploy in the SimplePHPApp app's Actions.

  2. Accept the defaults and click Deploy.

    When you click Deploy on the Deploy App page, you trigger a Deploy lifecycle event, which notifies the agents to run their Deploy recipes. By default, you trigger the event on all of the stack's instances. The built-in Deploy recipes deploy the app only to the appropriate instances for the app type, PHP App Server instances in this case. However, it is often useful to trigger the Deploy event on other instances, to allow them to respond to the app deployment. In this case, you also want to trigger Deploy on the MySQL instance to set up the database.

    Note the following:

    • The agent on the PHP App Server instance runs the layer's built-in recipe, followed by appsetup.rb, which configures the app's database connection.

    • The agent on the MySQL instance doesn't install anything, but it runs dbsetup.rb to create the urler table.

    When the deployment is complete, the Status will change to successful on the Deployment page.