Listing AWS IAM Permission Names by System
Tuesday, April 18th, 2017A tiny shell script for listing the AWS IAM permission for a particular system, like “ec2” or “s3”.
Does not handle every possible case, as some URL paths are inconsistent. YMMV.
Example:
lap ~> iam-permissions ec2 | head -5
ec2:AcceptReservedInstancesExchangeQuote
ec2:AcceptVpcPeeringConnection
ec2:AllocateAddress
ec2:AllocateHosts
ec2:AssignPrivateIpAddresses
Script below…