mirror of
https://github.com/scratchfoundation/aws-sts-helper.git
synced 2024-11-27 17:45:38 -05:00
Better formatting in example
This commit is contained in:
parent
7ab9ac6cc3
commit
b6a119f67e
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ sts.getTemporaryCredentials({
|
|||
}
|
||||
|
||||
console.log('temp:',temp);
|
||||
var sh = `export AWS_ACCESS_KEY_ID=${temp.Credentials.AccessKeyId}\n` +
|
||||
var sh =
|
||||
`export AWS_ACCESS_KEY_ID=${temp.Credentials.AccessKeyId}\n` +
|
||||
`export AWS_SECRET_ACCESS_KEY=${temp.Credentials.SecretAccessKey}\n` +
|
||||
`export AWS_SESSION_TOKEN=${temp.Credentials.SessionToken}\n`;
|
||||
fs.writeFileSync("aws-temp-credentials.sh", sh, {encoding:'utf-8'});
|
||||
|
|
Loading…
Reference in a new issue