How to use CloudFormation to create an ECS cluster?

0 votes

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?

Sep 24, 2018 in AWS by datageek
• 2,440 points
531 views

1 answer to this question.

0 votes

Looks like there is nothing special about ECS that you should not be able to do via Cloud Formation.

Take a look at this 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.

answered Sep 24, 2018 by Archana
• 4,090 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to launch and configure an EMR cluster using boto

Boto and the underlying EMR API is ...READ MORE

answered Sep 12, 2018 in AWS by Priyaj
• 56,520 points
991 views
0 votes
1 answer

How to create new stack using create-change-set in AWS Cloudformation

The type of change set operation. To ...READ MORE

answered Sep 18, 2018 in AWS by Priyaj
• 56,520 points
334 views
0 votes
1 answer

How to create a CloudFormation only AWS policy

The easiest way to achieve what you're ...READ MORE

answered Sep 26, 2018 in AWS by Priyaj
• 56,520 points
118 views
0 votes
1 answer
0 votes
2 answers
+1 vote
1 answer

How to create a redshift cluster?

You can create a Redshift Cluster using ...READ MORE

answered Feb 25 in AWS by Priyaj
• 56,520 points
45 views
0 votes
1 answer

How do I disable detailed monitoring for instances in an auto scaling group in a CloudFormation template?

The property you want is InstanceMonitoring, not ...READ MORE

answered Aug 31, 2018 in AWS by Archana
• 4,090 points
46 views
0 votes
1 answer

How to launch an EC2 instance with IAM-Role?

The credentials you are using from your ...READ MORE

answered Sep 3, 2018 in AWS by Archana
• 4,090 points
190 views