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,530 points
3,745 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.

Hope this helped!!

To know more about Google Cloud, It is recommended to go for Google Cloud Certification training today.

Thank you!

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

Related Questions In AWS

0 votes
1 answer

How to create an ECS cluster using AWS CLI?

Hi@akhtar, You can create a new Amazon ECS cluster. ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,440 points
720 views
0 votes
1 answer

How to delete an empty ECS cluster using AWS CLI?

Hi@akhtar, You can delete the specified ECS cluster. The ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,440 points
1,503 views
0 votes
1 answer

How to create a new service in ECS cluster behind a load balancer?

Hi@akhtar, The following create-service example shows how to create a ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,440 points
1,288 views
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
• 58,090 points
4,571 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
• 58,090 points
3,650 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
• 58,090 points
1,825 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,170 points

edited Jun 16, 2023 by Khan Sarfaraz 1,014 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,170 points
2,786 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP