Restricts access to AWS IAM Access Analyzer operations, only allowing access from security roles.
What this SCP does
This Service Control Policy (SCP) restricts access to AWS IAM Access Analyzer operations, only allowing access from security roles. This ensures that security analysis capabilities are only accessible to designated security teams.
This policy is valuable for organizations that want to centralize security analysis functions and prevent unauthorized usage of Access Analyzer.
How to test this SCP works
To validate this SCP, attempt to create or use Access Analyzer capabilities. The SCP will deny these operations unless the request comes from an IAM role whose name starts with 'SecurityOps'.
We expect all Access Analyzer operations to be denied with AccessDenied errors when attempted from any role that doesn't start with 'SecurityOps'.
How to test allowed operations from a SecurityOps role
To confirm that the SCP allows Access Analyzer operations for the intended security role, follow these steps:
If these commands succeed when run from the SecurityOps role, the SCP is correctly allowing access for authorized security roles.