Created
December 23, 2020 14:46
-
-
Save john-auld/32930a90410b41b03567df1e39387bc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AWS = require('/app/node_modules/aws-sdk'); | |
var sts = new AWS.STS(); | |
sts.getCallerIdentity({}, function(err, data) { | |
if (err) { | |
console.log("Error", err); | |
} else { | |
console.log(JSON.stringify(data)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the node REPL. Use the following example to check the AWS role.