Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
fix(publish): support temporary aws credentials (#70)
Browse files Browse the repository at this point in the history
include `AWS_SESSION_TOKEN` from environment in credentials passed to
aws sdk in order to support publishing to aws accounts that use
temporary credentials
  • Loading branch information
loganlinn authored and jdx committed Oct 22, 2018
1 parent 52eed94 commit a1a1cd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const aws = {
const creds = {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
sessionToken: process.env.AWS_SESSION_TOKEN,
}
if (!creds.accessKeyId) throw new Error('AWS_ACCESS_KEY_ID not set')
if (!creds.secretAccessKey) throw new Error('AWS_SECRET_ACCESS_KEY not set')
Expand Down

0 comments on commit a1a1cd6

Please sign in to comment.