Skip to content
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

Feature Request: IAM auth with SessionToken #94

Open
osulivanDE opened this issue Jul 10, 2023 · 1 comment
Open

Feature Request: IAM auth with SessionToken #94

osulivanDE opened this issue Jul 10, 2023 · 1 comment

Comments

@osulivanDE
Copy link

I am trying to upload data to Mapbox S3 staging server and the API documentation from Mapbox uses this example for AWS CLI:

$ export AWS_ACCESS_KEY_ID={accessKeyId}
$ export AWS_SECRET_ACCESS_KEY={secretAccessKey}
$ export AWS_SESSION_TOKEN={sessionToken}
$ aws s3 cp /path/to/file s3://{bucket}/{key} --region us-east-1

Link to API Doc

My problem is that i haven´t found a node where i can pass the sessionToken into for this IAM authentication.

Is there already a way to do this or might that be a feature for furure development of this integration?

Thank a lot.

@uenotakeshi1048
Copy link

with msg.AWSConfig, I was able to specify the sessionToken and make it work like:

msg.AWSConfig = {
  "accessKeyId": "ACCESSKEY",
  "secretAccessKey": "SECRETACCESSKEY",
  "sessionToken": "SESSIONTOKEN",
  "region":"ap-northeast-1"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants