Terraform script to setup AWS Elastic Beanstalk with a load-balanced Docker app
- Create an Elastic Beanstalk Application and environment.
- Setup the EB environment with Docker, an Elastic Loadbalancer and forward port from HTTP / HTTPS to the specified instance port.
- (Optionnal) Create a Route53 Alias to link your domain to the EB domain name
- (Optionnal) Create a Cloudfront distribution on top of your Elastic Beanstalk environment
Many options are available through variables. Feel free to look into variables.tf
inside each module to see all parameters you can setup.
- Elastic Beanstalk Application: https://www.terraform.io/docs/providers/aws/r/elastic_beanstalk_application.html
- Elastic Beanstalk Environment: https://www.terraform.io/docs/providers/aws/r/elastic_beanstalk_environment.html
- CloudFront: https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html
- Route53: https://www.terraform.io/docs/providers/aws/d/route53_zone.html