Loading...
Loading...
This module set provisions a Magento 2 hosting environment on EC2 Auto Scaling groups — the EC2-based alternative to the ECS module for teams who prefer direct instance control or have existing AMI pipelines.
The architecture includes a Launch Template with a Magento-optimized user-data bootstrap, an Auto Scaling group spanning multiple availability zones, RDS MySQL with automated failover, ElastiCache Redis, and an Application Load Balancer.
Suited for teams migrating from on-premise or existing EC2 deployments who want a defined IaC baseline without moving to container-based compute.
Clone the repository
git clone https://github.com/easecloudio/magento2-aws-ec2-terraformInitialize and review the plan
cd magento2-aws-ec2-terraform
terraform init
terraform plan -var-file=example.tfvarsApply to your AWS account
terraform apply -var-file=example.tfvarsEC2 Auto Scaling group with Launch Template, configurable instance types, and multi-AZ placement
Multi-AZ RDS MySQL 8.0 with automated backups, parameter group tuned for Magento workloads
ElastiCache Redis for Magento session and full-page cache with cluster mode support
ALB with sticky sessions, ACM TLS termination, and health check configuration for Magento
Use these modules to deploy. Hire us to keep it running.
This OSS tool
Our managed service