Go to ECS Service -> Select Task Definition -> Select the one we created manually. Click “Create New Revision” as shown below:
Scroll down to the Container Definitions section:
Click the Container Name and replace the Image URI with the new one created due to the code change in earlier step:
Click Create -> A new revision of Task Definition is created.