Create Task Definition

Go to the ECS Service -> Select Task Definition dashboard Select Fargate -> Next Step -> Fill in the name, select the role to be created as shown below. If the role has been created in earlier assignments, then it will appear in a drop-down list selection: dashboard Populate the CPU and Memory configuration as shown and click "Add Container" button to configure the image: dashboard To select the Image URI, go to the "ECR" Service and sort the list of Repos by creation date & identify the latest repo created by the CloudFormation template in our earlier CI/CD steps. In this case, we can see the sorted repo "edeupu04gcin". It would be a different name for your setup, so please click that repo: dashboard Note the Image URI as shown below: dashboard Populate this Image URI and set the container name as shown below. This is the name the container will be instantiated with: dashboard Once saved, your container image is configured for the Task Definition: dashboard Leave the other parameters as default and create the Task Definition.