-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot pass AWS session token to dynamodb connection #25066
Comments
PyDynamoDB supports iam roles so that you don't have to worry about token expiry. That's better than manually updating token in superset connection everytime
|
Thanks @mdeshmu, do you know if there is any way to use this in the |
yes, here is an example |
Thanks again for your input. Unfortunately for my use-case I am not able to use the IAM role directly with the Superset is running in k8s and I am working with |
@malatep PyDynamodb v0.5.2 was released to add this feature. Please have a try. |
Thanks @passren for your quick implementation of the changes! I am not sure if I am missing something or if maybe is a current limitation of superset but I am still unable to connect. What I am doing is pass role and token in connection
I think the problem is that superset dynamodb connector requires
PyDynamoDB also allows to get credentials from instance profiles, without the need to pass any credentials information. Is it possible to achieve the same in superset? |
@malatep You have to place For Pydynamodb, the credentials passing from the connection string will be overwritten by Could you check what errors come out in the backend? I'd like to help if there are error logs. |
Thanks again for your help. So I tried again passing dummy values as for key and secret and I think there is a good sign that superset calls
I think it's because of this line of code in PyDynamoDB ProviderId parameter is optional and as per API doc
So in my case I don't need to pass the |
@malatep Yes, you are right. That is my bad. I have fixed this bug in v0.5.4. Please update pydynamodb to latest one. Thank you so much for the investigation. |
Thank you for the fix. It works! The challenge I have now is how to update the connection with fresh credentials once the token expires. I have created a dedicated discussion to see if anyone has guidance on this. Thank you again. I will close this issue. |
Hello, I am trying to connect to DynamoDB using the connection string mentioned here. Version Superset 2.0.1
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
This is supported by PyDynamoDB as mentioned here
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
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!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: