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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠