terraform/examples/aws-ecs-alb
Andreas Würl aa130b070a allow metrics collection (#15352) 2017-06-21 16:58:55 +03:00
..
README.md provider/aws: Add support for ECS svc - LB target group (#8190) 2016-08-23 11:19:43 -05:00
cloud-config.yml provider/aws: Add support for ECS svc - LB target group (#8190) 2016-08-23 11:19:43 -05:00
instance-profile-policy.json allow metrics collection (#15352) 2017-06-21 16:58:55 +03:00
main.tf `roles` deprecated in examples (#13769) 2017-04-19 20:20:02 +03:00
outputs.tf provider/aws: Add support for ECS svc - LB target group (#8190) 2016-08-23 11:19:43 -05:00
task-definition.json provider/aws: Add support for ECS svc - LB target group (#8190) 2016-08-23 11:19:43 -05:00
variables.tf Fmt all the config files 2016-09-22 11:49:09 +00:00

README.md

ECS with ALB example

This example shows how to launch an ECS service fronted with Application Load Balancer.

The example uses latest CoreOS Stable AMIs.

To run, configure your AWS provider as described in https://www.terraform.io/docs/providers/aws/index.html

Get up and running

Planning phase

terraform plan \
	-var admin_cidr_ingress='"{your_ip_address}/32"' \
	-var key_name={your_key_name}

Apply phase

terraform apply \
	-var admin_cidr_ingress='"{your_ip_address}/32"' \
	-var key_name={your_key_name}

Once the stack is created, wait for a few minutes and test the stack by launching a browser with the ALB url.

Destroy 💥

terraform destroy