Creating and Deploying an Application in AWS OpsWorks

Lab Steps

lock
Logging In to the Amazon Web Services Console
lock
Creating a Stack in AWS OpsWorks
lock
Creating a Layer in AWS OpsWorks
lock
Creating and Deploying an Application in AWS OpsWorks
lock
Deleting a Stack in AWS OpsWorks
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

In this lab step, you will create and deploy your PHP application using an AWS OpsWorks App component.

 

Instructions

1. Click Apps in the left-hand menu:

alt

 

2. Click Add app:

alt

 

3. Configure the following settings under each section:

  • Settings
    • Name: Enter 
  • Application Source
    • Repository type: Select Git
    • Repository URL: Enter https://github.com/awslabs/opsworks-demo-php-simple-app
    • Branch/Revision: Enter version1

 

4. Click Add app:

alt

This will bring you to the Apps page with fizzbuzz as the only application displayed.

 

5. Click deploy under Actions:

alt

 

6. Under Settings, ensure the Deploy option is selected for Command:

alt

 

7. Under Instances, click Advanced>> to expand more details about this deployment:

alt

Note: If you do not see the Advanced>> dropdown option under Instances, the instances are still in the process of being created. Wait a minute or two and then refresh the page.

This section allows you to choose which layer instances will be used to serve your application. You've only configured one EC2 instance so far: php-app1.

 

8. To start the deployment and load the deployment page, click Deploy: 

alt

 

9. Wait for the deployment Status to display successful:

alt

The deployment can take up to 2 minutes to complete.

 

10. Click php-app1 under Hostname to navigate to its detail page:

alt

 

11. Scroll down to the Network and Security section and click the Public DNS URL:

alt

Your Simple PHP application will open in a new browser tab with the following message:

alt

 

Summary

In this lab step, you successfully created and deployed your PHP application using AWS OpsWorks.

Validation checks
1Checks
Created the OpsWork App

Check that the OpsWork App has been created.

AWS OpsWorks