Have a service running in an ECS cluster dynamically create a new service in the same cluster

0

Hi,

We have an ECS cluster with a couple of HTTP services running in it.

We have a requirement to run up new services (from known images, obviously) at run time - so we'll need to bake the AWS SDK into the management service so that it can do this.

We currently deploy the entire stack (including an example of the type of service that will need to be created dynamically) via the CDK.

Does anyone have a view on the best approach?

I'm imagining creating a CloudFormation template from the existing CDK service definition and pushing it to S3 (or making it a Service Catalog CloudFormation Product?) and then just creating a new stack from it at runtime via the SDK. Does that sound like a sane approach?

The new services would be in the same ECS cluster.

1 Answer
0
Accepted Answer

FWIW we defined a ServiceCatalog product using the CDK and provision and deprovision provisioned products using the SDK.

answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions