-
Notifications
You must be signed in to change notification settings - Fork 152
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
Assume Role #25
Comments
Yes. I'd love to be able to use this in a lambda function. |
@rashidcmb @MichaelDavisTSN do you want to submit a PR? |
For those that need to get this to work with an assumed role. Just add a Once you do that, it works perfectly. A proper PR would have it look for the token and use it if it was present or handle it like it's handling MFA tokens. I might work try to submit one at some point. But wanted to get this out there in case anybody else needed to get it working with assumed role credentials. |
Note: I'm not a Node JS developer. It seems this method no longer works. I get this error: at Request.extractError (/home/develop/projects/VSCode/DynamoDB/DynamoDBtoCSV/node_modules/aws-sdk/lib/protocol/json.js:52:27) config.json {
"accessKeyId": "<SECRET_KEY_ID>",
"secretAccessKey": "<SECRET_ACCESS_KEY>",
"sessionToken" : "<SESSION_TOKEN_FROM_ENV>",
"region": "us-west-2"
} dynamoDBtoCSV.js
Environment env | grep AWS_SESSION_TOKEN
AWS_SESSION_TOKEN=<AWS_SESSION_TOKEN> |
Can we assume role and use the same script
The text was updated successfully, but these errors were encountered: