uktrade / fargatespawner

Spawns JupyterHub single user servers in Docker containers running in AWS Fargate
MIT License
46 stars 21 forks source link

Question about `task-role` in documentation. #23

Open adpatter opened 2 years ago

adpatter commented 2 years ago

In the documentation the PassRole Action includes the resource arn:aws:iam::<aws_account_id>:role/<task-role>. What is this resource referring to? Our implementation is working without defining this resource.

    {
      "Sid": "",
      "Effect": "Allow",
      "Action": "iam:PassRole",
      "Resource": [
        "arn:aws:iam::<aws_account_id>:role/<task-execution-role>",
        **"arn:aws:iam::<aws_account_id>:role/<task-role>"**
      ]
    }