Skip to content

Instantly share code, notes, and snippets.

View pjhavariotis's full-sized avatar
💭
Up and Running !!!

Panagiotis Chavariotis pjhavariotis

💭
Up and Running !!!
View GitHub Profile
@anthumchris
anthumchris / validate-permissions.js
Created June 9, 2022 20:55
Validate AWS Policy Action Permissions for IAM User or Role
/* 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()