malatep opened a new issue, #25066: URL: https://github.com/apache/superset/issues/25066
Hello, I am trying to connect to DynamoDB using the connection string mentioned [here](https://superset.apache.org/docs/databases/dynamodb/) `dynamodb://{aws_access_key_id}:{aws_secret_access_key}@dynamodb.{region_name}.amazonaws.com:443?connector=superset` Since I am using IAM roles, I would also need to pass the AWS session token. As mentioned in the AWS docs at [this link](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html) > When you make a call using temporary security credentials, the call must include a session token, which is returned along with those temporary credentials. AWS uses the session token to validate the temporary security credentials. This is supported by PyDynamoDB as mentioned [here](https://github.com/passren/PyDynamoDB/wiki/1.-Getting-Started#credentials) ``` from pydynamodb import connect cursor = connect(aws_access_key_id="aws_access_key_id", aws_secret_access_key="aws_secret_access_key", aws_session_token="aws_session_token", region_name="region_name").cursor() ``` However, I could not find any way to include this correctly in the connection string. Is there any way to achieve this? #### How to reproduce the bug 1. Create IAM Role with DDB permissions 2. Create new connection to DDB using key ID and key secret 3. This will fail because session token is missing ### Expected results There should be an option to add the AWS session token ### Actual results The connection is unsuccessful ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [X] I have reproduced the issue with at least the latest released version of superset. - [X] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Add any other context about the problem here. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
