Visit our Location
250 Main Street, New York
Give us a Call
+ (12) 123 - 556 - 7890
Send us a Message
Opening Hours
Mon - Friday: 8AM - 5PM

How To Install Magento On AWS

How To Install Magento On AWS

Amazon Web Services (AWS) provide a highly reliable, flexible and secure cloud computing products for millions of active customers. Being an ecommerce giant itself, Amazon understands the importance of providing the best infrastructure for ecommerce platforms.

Magento is one of the most robust ecommerce solutions that help you build your ecommerce store from scratch. With Magento, you get the widely-used ecommerce software which that can help you in quickly growing your revenue. However, having the perfect software is not the sole solution! You need to have the most optimized hosting platform with the best infrastructure to host your Magento store. Here step by guide to install magento on AWS.

Step 1. Prepare an AWS Account

1. If you don’t already have an AWS account, create one at by following the on-screen instructions. Part of the sign-up process involves receiving a phone call and entering a PIN using the phone keypad.

2. Use the region selector in the navigation bar to choose the AWS Region where you want to deploy the Magento cluster on AWS. For more information, see Regions and Availability Zones. Regions are dispersed and located in separate geographic areas. Each Region includes at least two Availability Zones that are isolated from one another but connected through low-latency links.

3. Create a key pair in your preferred region. To do this, in the navigation pane of the Amazon EC2 console, choose Key Pairs, Create Key Pair, type a name, and then choose Create.
create key pair

Amazon EC2 uses public-key cryptography to encrypt and decrypt login information. To be able to log into your instances, you must create a key pair. On Linux, we use the key pair to authenticate SSH login.

4. If necessary, request a service limit increase for the EC2 instance types that you intend to deploy. To do this, in the AWS Support Center, choose Create Case, Service Limit Increase, EC2 instances, and then complete the fields in the limit increase form.

The default limit for the number of instances depends on the instance type you choose and currently ranges from 2 to 20 (see the Amazon EC2 FAQ page). If you have existing deployments that also use this instance type, or if you plan to exceed the default with this reference deployment, you will need to request a limit increase. It might take a few days for the new service limit to become effective.

Step 2. Download the Magento Software

Before you launch the Quick Start, you must download the Magento Open Source software with or without sample data into an S3 bucket. When you launch the Quick Start, you specify the full path to the downloaded files as input to the main AWS CloudFormation template, and the Quick Start automatically installs Magento for you.

1. Download the Magento Open Source version 2.1.9 full release from the Magento Download Releases, Patches and Tools page. Choose the .tar.gz format for the download. At the time of publication, the latest full release was Magento-CE-2.1.9_sample_data-2017-09-13-03-57-21.tar.gz.

If you want to set up the sample store, download the Magento Open Source (formerly Community Edition) version 2.1.9 full release with sample data from the Magento Download Releases, Patches and Tools page. Choose the .tar.gz format for the download

3. Create an S3 bucket by following the instructions in the Amazon S3 Getting Started Guide.

4. Add the downloaded files to the S3 bucket by following the instructions in the Amazon S3 Getting Started Guide.

Note the full paths to the downloaded files. After you launch the Quick Start, when you set parameters for the AWS CloudFormation template, you’ll specify these paths.

For example, if your Amazon S3 bucket is named mymagentobucket, you’ll set the MagentoReleaseMedia parameter to:

If you’ve downloaded Magento with sample data to mymagentobucket, you’ll set the MagentoReleaseMedia parameter to:

Step 3. Launch the Quick Start

1. Choose one of the following options to launch the AWS CloudFormation template into your AWS account.

deploy magento

2. Check the region that’s displayed in the upper-right corner of the navigation bar, and change it if necessary. This is where the network infrastructure for Magento will be built.

3. On the Select Template page, keep the default setting for the template URL, and then choose Next.

4. On the Specify Details page, change the stack name if needed. Review the parameters for the template. Provide values for the parameters that require your input. For all other parameters, review the default settings and customize them as necessary. When you finish reviewing and customizing the parameters, choose Next.

5. On the Options page, you can specify tags (key-value pairs) for resources in your stack and set advanced options. When you’re done, choose Next.

6. On the Review page, review and confirm the template settings. Under Capabilities, select the check box to acknowledge that the template will create IAM resources.

7. Choose Create to deploy the stack.

8. Monitor the status of the stack. When the status is CREATE_COMPLETE,

create complete

Step 4. Test Your Magento Deployment

When the AWS CloudFormation template has successfully created the stack, all web server nodes will be running with the software installed in your AWS account. To connect to the Magento stack, use the URL of the Elastic Load Balancing endpoint.

elb endpoint

You can access the Magento Admin Panel by going to the URL endpoint followed by the admin path. You can log in with the user name and password you chose when creating the stack. Make sure to change the user name and password for subsequent logins to help ensure the security of your account.

To connect to the web server instance and validate MySQL, use SSH to connect to the bastion host instance in your VPC.