Troubleshooting Access Denied Error While Pulling Data from Glue Catalog Table

Original Slack Thread

Hello Everyone,

Just trying to pull data from the glue catalog table with the below DataHub recipe

    type: glue
    config:
        aws_region: *****
        aws_access_key_id: *****
        aws_secret_access_key: *****
        aws_session_token: *****
        aws_role: 'arn:aws:iam::*****:role/*****'
        database_pattern:
           allow:
               - "Database"
        table_pattern:
           allow:
               - "table"```
but unfortunately got the following error
```datahub.ingestion.run.pipeline.PipelineInitError: Failed to configure the source (glue): An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:sts::*****:assumed-role/*****/***** is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::*****:role/*****```
On the Note, I had already added the  *"Action": "sts:AssumeRole"* in the policy

Any help would be greatly appreciated

Thanks

Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Which DataHub version are you using? (e.g. 0.12.0)
  2. Please post any relevant error logs on the thread!

DataHub and Pyhton version

Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]```

It seems like the user still can’t assume the role.