AWS › IAM
What is the principle of least privilege in IAM, and what practical strategies help apply it effectively?
IntermediateAnswer
The principle of least privilege means granting only the exact minimum permissions a user, role, or application actually needs to perform its intended function, and nothing more, and practical strategies for applying it include starting with a minimal set of permissions and expanding only as genuinely needed, using IAM Access Analyzer to identify unused permissions that could be safely removed, and preferring specific resource level permissions over broad wildcard permissions whenever possible.
aws accessanalyzer list-findings --analyzer-arn arn:aws:access-analyzer:us-east-1:123456789012:analyzer/my-analyzerReal-world example A security team uses IAM Access Analyzer to discover that a specific application role had been granted broad administrative permissions it never actually used, and narrows that role down to only the handful of specific actions the application genuinely requires.