Loading...
Loading...
This Terraform module set provisions the complete AWS infrastructure required to run Magento 2 on ECS Fargate with auto scaling. It covers compute, networking, database, cache, and storage layers in a single apply.
The modules follow AWS Well-Architected Framework principles: multi-AZ RDS with read replicas, ElastiCache Redis cluster for session and full-page cache, S3 for media assets, and an Application Load Balancer with ACM-managed TLS.
Designed for teams who want a repeatable, version-controlled infrastructure baseline — not a one-time manual setup. Works with Terraform 1.5+ and targets AWS regions with full ECS Fargate support.
Clone the repository
git clone https://github.com/easecloudio/magento2-aws-ecs-terraformInitialize and review the plan
cd magento2-aws-ecs-terraform
terraform init
terraform plan -var-file=example.tfvarsApply to your AWS account
terraform apply -var-file=example.tfvarsECS Fargate cluster with task definitions pre-configured for Magento 2 PHP-FPM and Nginx containers
Multi-AZ RDS MySQL 8.0 with automated backups and optional read replica
ElastiCache Redis cluster for Magento session storage and full-page cache backend
ALB with ACM TLS, WAF integration point, and target group health checks tuned for Magento
Use these modules to deploy. Hire us to keep it running.
This OSS tool
Our managed service