ECS Task definition not found role identity provider

0

Hi guys, im following this tutorial with my root account to try deploy my docker container like this but when im triying assign the role to ECS task definition min 3:45 and doesnt exist.

Tutorial: https://github.com/rahulpatilgit/demo-deploy/blob/main/.github/workflows/aws.yml https://www.youtube.com/watch?v=mdFOohfheJc

Steps to try to solve:

  1. I try recreate role with identity provider.
  2. Look github documentation to connect this.
  3. Read AWS doc to search https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-iam.html#security_iam_authentication
  4. Add more privileges administrator, ec2, ecs full access to look if its some error related with auth.
  5. Logout and login in the root account.
  6. Search in the task role input.

Enter image description here Enter image description here Enter image description here

helpme

News: Im checking i created this in Ohio but there should not be a problem with the regions my ecr and ecs is in the same region and I am trying to associate is a task role, according to what I have read this is global. In the task definition I don't see the role, I tried to create it without role and create another one and I see this new role but not the web identity role to connect to github actions.

For now in github actions output I will not see any errors because I have not completely finished the tutorial I'm only at 3:45min, but I do not understand why in the video if the role appears and I do not.

Minutes ago i modify policy to add same like role task execution and now if show but i dont know if its right or it has security implications.

Attach policy

1 Answer
1

Hello.

Is it possible that you are checking the wrong region in the management console?
The sample GitHub Actions you are reviewing uses the us-east-1 region.
Therefore, if the deployment was successful, the task definition will have been created in the us-east-1 region.
By the way, are there any errors output by GitHub Actions that can lead to troubleshooting?

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
  • I updated the question with news

  • The IAM role displayed in the image is the IAM role used when linking with GitHub. Instead of using this as a task roll, you need to create a task roll separately.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions