reference deployment

Magento on AWS

Content management for e-commerce websites on the AWS Cloud

This Quick Start automatically deploys Magento Open Source (formerly Community Edition) on the AWS Cloud.

Magento is an open-source content management system for e-commerce websites. This automated deployment builds a cluster that runs Magento along with optional sample data, which lets you experiment with custom themes and view the web store.

The deployment uses your choice of Amazon Aurora or MySQL on Amazon RDS for database operations, Amazon EFS for shared storage between EC2 instances, and an Amazon ElastiCache cluster with the Redis cache engine to improve application load times.


This Quick Start was developed by
AWS solutions architects.

  •  What you'll build
  •  How to deploy
  •  Cost and licenses
  •  What you'll build
  • Use this Quick Start to automatically set up the following Magento environment in your AWS account:

    • A virtual private cloud (VPC) that spans two Availability Zones, configured with two public and two private subnets.*
    • In a public subnet, a bastion host to provide Secure Shell (SSH) access to the Magento web servers. The bastion host is maintained by an Auto Scaling group that spans multiple Availability Zones, and is configured to ensure there is always one bastion host available.*
    • AWS-managed network address translation (NAT) gateways deployed into the public subnets and configured with an Elastic IP address for outbound internet connectivity. The NAT gateways are used for internet access for all EC2 instances launched within the private network.*
    • Either an Amazon RDS for MySQL or an Amazon Aurora database engine deployed via Amazon RDS in the first private subnet. If you choose Multi-AZ deployment, a synchronously replicated secondary database is deployed in the second private subnet. This provides high availability and built-in automated failover from the primary database.
    • An Amazon ElastiCache cluster with the Redis cache engine launched in the private subnets.
    • Amazon EC2 web server instances launched in the private subnets.
    • Elastic Load Balancing deployed to automatically distribute traffic across the multiple web server instances.
    • Amazon EFS created and automatically mounted on web server instances to store shared media files.
    • Auto Scaling enabled to automatically increase capacity if there is a demand spike, and to reduce capacity during low traffic times. The default installation sets up low and high CPU-based thresholds for scaling the instance capacity up or down. You can modify these thresholds during launch and after deployment.
    • An AWS Identity and Access Management (IAM) instance role with fine-grained permissions for accessing AWS services necessary for the deployment process.
    • Appropriate security groups for each instance or function to restrict access to only necessary protocols and ports. For example, access to HTTP server ports on Amazon EC2 web servers is limited to Elastic Load Balancing. The security groups also restrict access to Amazon RDS DB instances by web server instances.

    *  The template that deploys the Quick Start into an existing VPC skips the tasks marked by asterisks and prompts you for your existing VPC configuration.

  •  How to deploy
  • To build your Magento environment on AWS, follow the instructions in the deployment guide. The deployment process includes these steps:

    1. If you don't already have an AWS account, sign up at
    2. Download the Magento software.
    3. Launch the Quick Start. Each deployment takes 30-60 minutes. You can choose from two options:
    4. Test the deployment by connecting to the Magento stack, accessing the Magento Admin Panel, and testing MySQL connectivity.

    To customize your deployment, you can configure your Magento, database, and Amazon ElastiCache settings, set the minimum and maximum number of web servers, and customize CIDR block sizes and instance types.

    Amazon may share user-deployment information with the AWS Partner that collaborated with AWS on the Quick Start.  

  •  Cost and licenses
  • You are responsible for the cost of the AWS services used while running this Quick Start reference deployment. There is no additional cost for using the Quick Start.

    The AWS CloudFormation template for this Quick Start includes configuration parameters that you can customize. The cost will vary depending on the storage and compute configuration of the cluster you deploy. For cost estimates, see the pricing pages for each AWS service you will be using. Prices are subject to change.

    This Quick Start uses Magento Open Source (formerly Community Edition), which is open-source software distributed under the Open Software License (OSL 3.0).