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) ==


Log in to AWS Management Console.  
From the  AWS Management Console home page > '''Build a solution''' group, click on '''Build a web app''', which is a path to creating a new Elastic Beanstalk instance.


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.
''-- OR --''


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.
'''AWS Management Console''' > '''Services''' > '''Compute''' > '''Elastic Beanstalk'''.
 
'''Create New Application''' at the upper right.
 
Once the application is created, navigate to its management page, '''Actions''' dropdown (upper right) > '''Create environment'''
 
'''Select environment tier''': Web server environment. Then click '''Select'''
* '''Environment name:''' ''appropriate token for the environment''
* '''Domain:''' ''leave blank''
* '''Platform:''' PHP, Python, Docker, etc.
* '''Applciation code''': Upload your code
** ''In the next dialog there is an option to use a Public S3 URL, which might be simpler to maintain with Git, etc.? No, this process only accepts zip files, so using an S3 bucket would mean that there is a zip archive located at the URL. Also, Git is an option, but only after using Git to archive a repo.''
** '''Version label:''' Include some indication of version in the token, e.g. version number or date.
* Click '''Create Environment''' to create and launch the new environment. This will create a new EC2 instance.
 
Once the environment is launched a url will be available that can be used to view the web site.
 
=== Subdomains ===
 
Create subdomains as separate environments under the common EB application.


== Configuration ==
== Configuration ==

Revision as of 23:37, 18 July 2018

Overview

Process (rough notes)

From the AWS Management Console home page > Build a solution group, click on Build a web app, which is a path to creating a new Elastic Beanstalk instance.

-- OR --

AWS Management Console > Services > Compute > Elastic Beanstalk.

Create New Application at the upper right.

Once the application is created, navigate to its management page, Actions dropdown (upper right) > Create environment

Select environment tier: Web server environment. Then click Select

  • Environment name: appropriate token for the environment
  • Domain: leave blank
  • Platform: PHP, Python, Docker, etc.
  • Applciation code: Upload your code
    • In the next dialog there is an option to use a Public S3 URL, which might be simpler to maintain with Git, etc.? No, this process only accepts zip files, so using an S3 bucket would mean that there is a zip archive located at the URL. Also, Git is an option, but only after using Git to archive a repo.
    • Version label: Include some indication of version in the token, e.g. version number or date.
  • Click Create Environment to create and launch the new environment. This will create a new EC2 instance.

Once the environment is launched a url will be available that can be used to view the web site.

Subdomains

Create subdomains as separate environments under the common EB application.

Configuration

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

Notifications - Enter an email address to receive notifications.

Pricing

TK