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 回答
0
已接受的回答

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

已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则