내용으로 건너뛰기

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개 답변
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?

전문가
답변함 2년 전
전문가
검토됨 2년 전
전문가
검토됨 2년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.