rich-pager-68736
09/30/2022, 8:07 AMClientError: An error occurred (AccessDenied) when calling the AssumeRoleWithWebIdentity operation: Not authorized to perform sts:AssumeRoleWithWebIdentity
From the debug logs I can see that it has already assumed the correct role:
...
self = <botocore.client.STS object at 0x7f0f4f853190>
operation_name = 'AssumeRoleWithWebIdentity'
api_params = {'RoleArn': 'arn:aws:iam::XXXXXXXXXX:role/ttgsl-test-iam-edp-datahub-gms',
'RoleSessionName': 'botocore-session-1664525045',
...
Why does it try to assume a different role when it can use the attached role? What am I missing? Thanks!bulky-electrician-72362
09/30/2022, 9:56 AMdazzling-judge-80093
09/30/2022, 9:59 AMgray-shoe-75895
10/03/2022, 9:37 PM~/.aws
configs and automatically do some role assumption. Next, the datahub sdk will look at your recipe config and try to assume the roles listed theregray-shoe-75895
10/03/2022, 9:38 PMrich-pager-68736
10/04/2022, 7:00 AMnull
. It looks like this:
source:
type: glue
config:
env: DEV
aws_region: eu-central-1
aws_access_key_id: null
aws_secret_access_key: null
aws_session_token: null
aws_profile: null
aws_role: null
I just connected to the container and there is no ~/.aws
directory. However, some AWS-related env variables are defined, like AWS_ROLE_ARN
and AWS_WEB_IDENTITY_TOKEN_FILE
, created by EKS since I annotated my ServiceAccount and use that SA in my pod.rich-pager-68736
10/04/2022, 10:18 AMgray-shoe-75895
10/04/2022, 6:51 PMrich-pager-68736
10/05/2022, 6:27 AM