I need to automate the ECS patching , currently we do it manually

I need to automate the ECS patching , currently we do it manually.
I need to understand the way to automate this , what should be the prerequisites , what approach I should follow to automate ECS patching.
We have terraform , Jenkins , git and bitbucket

Hi @samsid24sep

Are you using ECS with Fargate or EC2?

we are using Ec2 for ECS patching.

Hi @samsid24sep

You can consider using AWS Systems Manager Patch Manager to patch the EC2 instances that are managed by ECS.

We are planning to do it with terraform , CI/CD pipelines as jenkins and for scripting we can use Python I guess.

Yes, they’re great tools. You should consider using ECS Fargate, which is a managed service, so we don’t need to worry about patching.