Quantcast
Viewing all articles
Browse latest Browse all 8068

AWS upload to S3 with STS credentials

I'm trying to use the AWS module to upload photos to S3. My app calls a API I have in place to generate some temporary credentials with STS. Other than access key & secret key, it also generates a session token.

The module uses AWS.authorize(accessKey, secretKey); to authorise, but I need to pass the SessionToken value in here in order to successfully connect.

Now I'm fairly new to AWS, so I could be missing something obvious, but if anyone has managed anything similar, it would be great to hear how you did it!


Viewing all articles
Browse latest Browse all 8068

Trending Articles