1. Go to AWS IAM console.
2. In the left sidebar,
3. In Trusted entity type section, choose AWS service.
4. In the Use case section,
5. Click Next.
6. In Role details section, enter ecsCodeDeployRole
for Role name.
7. Scroll down to the bottom, click Create role.