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 Risposta
0
Risposta accettata

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

con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande