Better formatting in example

This commit is contained in:
Colby Gutierrez-Kraybill 2018-08-16 08:45:46 -04:00
parent 7ab9ac6cc3
commit b6a119f67e

View file

@ -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'});