question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support for aws_session_token

See original GitHub issue

Hi, I’m using gsutil v. 4.3.1 and there isn’t any apparent support for the AWS_SESSION_TOKEN, which is a required configuration setting when working with AWS pre-signed URLs.

Use case: I’m trying to upload an object from a GCP bucket (in my account) to S3. I have been provided with an AWS pre-signed URL and corresponding credentials that include

  1. AWS_ACCESS_KEY_ID
  2. AWS_SECRET_ACCESS_KEY
  3. AWS_SESSION_TOKEN

I have tested with these variables in the .boto file, and even in different tests as environment variables, and the response I get is “403 AccessDenied” when running my cp command that is of the form

gsutil cp gs://mybucket/obj s3://s3bucket/obj

Things work fine when not using a pre-signed URL. After lots of testing, I wanted to verify that the AWS_SESSION_TOKEN is not supported, and to request for such support.

Thanks, -Nathan

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
ggiillcommented, May 15, 2020

+1 - It would be extremely useful to be able to sync from S3 (with an STS Assumed Role) to GCS using gsutil.

3reactions
arintocommented, Sep 17, 2019

Any updates on this feature?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using temporary credentials with AWS resources
When you make a call using temporary security credentials, the call must include a session token, which is returned along with those temporary...
Read more >
GetSessionToken - AWS Security Token Service
Returns a set of temporary credentials for an AWS account or IAM user. The credentials consist of an access key ID, a secret...
Read more >
Get a session token with AWS STS using an AWS SDK
The following code example shows how to get a session token with AWS STS and use it to perform a service action that...
Read more >
get-session-token — AWS CLI 1.27.35 Command Reference
Returns a set of temporary credentials for an Amazon Web Services account or IAM user. The credentials consist of an access key ID,...
Read more >
Requesting temporary security credentials - AWS Identity and ...
The AWS STS API operations create a new session with temporary security credentials that include an access key pair and a session token....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found