ptrhck edited a comment on issue #17190:
URL: https://github.com/apache/airflow/issues/17190#issuecomment-887002384
Both, the task and execution role of the services have the following
statement:
```
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Principal:
Service: ecs-tasks.amazonaws.com
Action: 'sts:AssumeRole'
```
If I add this, it works though:
```
Principal:
Service: ecs-tasks.amazonaws.com
AWS: arn:aws:sts:::assumed-role/airflow-ecs-task-role/TASK_ID
```
Can someone help why that is the case? The
[docs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#:~:text=you%20cannot%20use%20a%20wildcard%20(*)%20to%20mean%20%22all%20sessions%22.%20Principals%20must%20always%20name%20a%20specific%20session.)
state that I cannot wildcard that, but I do not know the task ID beforehand.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]