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?