An enterprise uses AWS IAM Identity Center to federate identity provider users into their AWS development account. The junior solutions architects in this account need the ability to create and manage IAM roles for Amazon EC2 instances. However, the senior security team requires that these junior architects must not be able to elevate their own permissions or assign administrative permissions to the EC2 instances they configure. Which TWO actions should the solutions architect take to meet these requirements?
- Create a permissions boundary IAM policy that defines the maximum permissions that the junior architects can delegate to the EC2 roles.Answer
- Attach an IAM policy to the junior architects' federated role that permits role creation only when the request includes the permissions boundary condition referencing the boundary policy.Answer
- CCreate individual IAM users with long-term access keys for each junior architect to bypass identity federation and assign them direct administrative access.
- DProvide the junior architects with temporary access to the AWS account root user credentials to perform administrative role creation tasks.
- EStore the role permissions as a plaintext String in an AWS Systems Manager Parameter Store parameter, and configure the EC2 instances to retrieve and apply the permissions at startup.
Answer
To secure delegated role creation, the solutions architect should create a permissions boundary policy to define the maximum delegated permissions and require the junior architects to apply this boundary policy whenever they create an IAM role.
Delegating the creation of IAM roles to non-administrator users without risk of privilege escalation is achieved using IAM Permissions Boundaries. First, a permissions boundary policy defines the upper limit of permissions. Second, the policy governing the creators (junior architects) is configured to require this permissions boundary when executing role creation commands. This prevents them from granting administrative rights or access they do not possess.
Step-by-Step Solution
Key Concept
Delegated Administration with IAM Permissions Boundaries