Can we use AWS SDK ECS client API in production environment

0

We are creating the ECS cluster through cloud-formation in production. we want to increase the Minimum and desired count for the ECS service through AWS SDK ECS client api calls. I want to confirm is there any issue or security concerns to increase the task count through AWS SDK ECS client API instead of Cloud-formation deployment?

2 Antworten
1

Yes, you can, but it is NOT recommended. If you do, MAKE SURE that you update the CloudFormation Stack shortly after with the correct config to put your environment back in sync.

I would recommend you do it using CloudFormation. Take a ChangeSet and ensure the service is not being recreated (your change should not cause this, but if you already have a drift, it might happen). If the Sevice is replaced, you can expect a 2-7 min hiccup so maybe do it off hours.

Hope it helps!

profile picture
beantwortet vor 2 Jahren
1

Making modifications outside of Cloudformation (or any IaC) will result in drift. If you don't make the same modification in your CF yaml file, the next time you run your CFT, it will reset the parameters. In many organizations, no changes are allowed without using IaC. That is a good practice as allowing direct modifications in production is a recipe for disaster and can cause differences in the environments between production and lower environments. You will never know what you tested in the lower environments will work in production.

profile pictureAWS
EXPERTE
beantwortet vor 2 Jahren
profile pictureAWS
EXPERTE
überprüft vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen