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 Resposta
0
Resposta aceita

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

respondido há 6 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas