I would like to use a cloudformation template to create my ecs cluster instead of spinning it up by hand, but I have yet to find a way. Is this simply not implemented yet, where you can create an ecs cluster as a resource in your cloudformation template, seems a bit odd they did not include that.
Amazon ECS supports creating clusters, task definitions, services, and task sets in AWS CloudFormation. The following examples demonstrate how to create resources with these templates using the AWS CLI. You can also create these resources using the AWS CloudFormation console.
Looks like there is nothing special about ECS that you should not be able to do via cloudformation.
here is a ECS quick stack cf template: https://s3.amazonaws.com/amazon-ecs-cloudformation/Amazon_ECS_Quickstart.template
Checkout: http://www.cloudtp.com/2015/02/04/getting-started-ec2-container-service-ecs/
The key in the cloud formation template is really the AMI id + ECS_CLUSTER definition in /etc/ecs/ecs.config. If you get that right it's basically a normal EC2 CF build.
Also, looks like there are newer AMIs for ECS. Here are the latest: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With