Hosting A PHP Web Application On AWS: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
== Process (rough notes) ==
== Process (rough notes) ==


=== Create EC2 instance ===
Log in to AWS Management Console.


Log in to AWS.
The home page contains an area titled '''Build a solution'''. Click on '''Build a web app''', which is a path to creating a new Elastic Beanstalk instance.
'''Services''' > '''EC2''' > '''Instances'''
'''Launch Instance''' dropdown > '''Launch Instance'''
'''Step 1: Choose an Amazon Machine Image (AMI)''': Amazon Linux 2 AMI
'''Step 2: Choose an Instance Type''': General purpose t2.micro
* Click '''Review and Launch'''
* Next page click '''Launch'''
'''Select an existing key pair or create a new key pair'''
* `Choose an existing key pair`
* Consider using a single key pair for all AWS instances linked to a particular client (e.g. don't create a new key pair unless there's a compelling reason to do that).
After confirming the instance will be created and start running.


=== Configure EC2 instance
The process to create the EB instance includes a prompt to upload source files for the instance. There is an alternative, which is to select a S3 bucket containing source files. Not sure which is preferable from a maintenance standpoint, or maybe when the source files are uploaded it automatically creates a new S3 bucket which can then be updated.


Return to EC2 Instances.
== Configuration ==
* The name of the new EC2 instance will be blank. Click to the right to edit.  
 
* Click on Alarm Status cell to create an alarm.
From the EB on the the EB instance to view its properties.
** '''Send a notifications to''' `North_Rose_Devs_Status_Failed`
 
** '''Take the action:''' Recover this instance
'''Notifications''' - Enter an email address to receive notifications.
** '''Whenever:''' Status Check Failed (System)


== Pricing ==
== Pricing ==

Revision as of 23:18, 18 July 2018

Overview

Process (rough notes)

Log in to AWS Management Console.

The home page contains an area titled Build a solution. Click on Build a web app, which is a path to creating a new Elastic Beanstalk instance.

The process to create the EB instance includes a prompt to upload source files for the instance. There is an alternative, which is to select a S3 bucket containing source files. Not sure which is preferable from a maintenance standpoint, or maybe when the source files are uploaded it automatically creates a new S3 bucket which can then be updated.

Configuration

From the EB on the the EB instance to view its properties.

Notifications - Enter an email address to receive notifications.

Pricing

TK