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 個答案
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
已回答 2 年前
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
專家
已回答 2 年前
profile pictureAWS
專家
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南