See http://blog.jdwyah.com/2016/02/ruby-on-rails-on-docker-on-amazon-ecs-w.html for explanation.
This is a terraform framework to get your
- [ECS Cluster] (https://aws.amazon.com/ecs/)
- ECR Repo
- ELB
- VPC
- Roles
- Rails App
- DataDog
- Traceview
All running.
To run:
-
Put your aws creds in a tfvars file.
-
Replace the DataDog & Traceview keys since I was lazy and didn't variableize them.
-
Run
terraform plan var-file="~/.whatsize.tfvars"
terraform apply var-file="~/.whatsize.tfvars"
- Find your ECR repo in AWS and push some Docker image there