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,490 points
2,185 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,150 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
• 57,640 points
2,619 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
• 57,640 points
1,543 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
• 57,640 points
868 views
+1 vote
2 answers
0 votes
2 answers

How to create an EC2 Snapshot in AWS Console?

To create a snapshot of your EC2 ...READ MORE

answered Feb 11, 2019 in AWS by Priyaj
• 57,640 points
193 views
+1 vote
1 answer

How to create a redshift cluster?

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

answered Feb 25, 2019 in AWS by Priyaj
• 57,640 points
129 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,150 points
218 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,150 points
1,054 views