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
/* This NodeJS script tests IAM Policy Actions for yourself or a specific PolicySourceArn user/role. | |
* | |
* https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html | |
*/ | |
import AWS from 'aws-sdk' // $ npm i -D aws-sdk@2 | |
const iam = new AWS.IAM() | |
const sts = new AWS.STS() |