Learning Resource

Deploying a LAMP Stack in AWS

Use the following procedure to create and deploy a LAMP stack in AWS.

To deploy a LAMP stack:

1.    Open the Amazon CloudFormation Service

In the upper left corner, choose Create Stack.

AWS screenshot showing the Amazon CloudFormation Service landing page.

Used with permission from Amazon Web Services.

Now, in the middle of the screen, go to Select a sample template from the drop-down menu.

AWS screenshot showing how to select a template when creating a new stack within Amazon CloudFormation Service.

Used with permission from Amazon Web Services.

Under Single Instance Sample, select the LAMP Stack template and click Next.

Under Specify Details, add the following details to the template:

ParameterInput 
Stack nameCCA640LAMPStack 
DBNamecca640 
DBPasswordcca640 
DBUsercca640 
Instance TypeDefault as t2.small 
KeyNameUse any existing key pair or create a new EC2 key pair 
SSHLocationDefault as 0.0.0.0/0 
AWS screenshot showing the inputs to use when specifying the details for the creation of a new stack with Amazon CloudFormation Service.

Used with permission from Amazon Web Services.

Now, click Next.

AWS screenshot showing the options screen for the creation of a new stack within Amazon CloudFormation Service. Inputs on the page are tags, permissions, and monitoring time for rollback triggers.

Used with permission from Amazon Web Services.

Keep the user defaults the same and click Next.

AWS screenshot showing the screen in which the inputs for the creation of a new stack within Amazon CloudFormation Service can be reviewed before the stack is finalized..

Used with permission from Amazon Web Services.

Now, click Create to finalize the creation of the LAMP stack.

AWS screenshot showing the screen showing the confirmation of the creation of a new stack within Amazon CloudFormation Service. The stack name is CCA640LAMPStack. The status is Create in Progress. The description says AWS CloudFormation Sample Template LAMP_SINGLE_Instance. Create a LAMP stack us....

Used with permission from Amazon Web Services.

Lab completed.