A company uses AWS Organizations to manage multiple AWS accounts. The companyβs SysOps team has been using a manual process to create and manage IAM roles. The team requires an automated solution to create and manage the necessary IAM roles for multiple AWS accounts. What is the MOST operationally efficient solution that meets these requirements?
- ACreate AWS CloudFormation templates. Reuse the templates to create the necessary IAM roles in each of the AWS accounts.
- BUse AWS Directory Service with AWS Organizations to automatically associate the necessary IAM roles with Microsoft Active Directory users.
- CUse AWS Resource Access Manager with AWS Organizations to deploy and manage shared resources across the AWS accounts.
- DUse AWS CloudFormation StackSets with AWS Organizations to deploy and manage IAM roles for the AWS accounts. (correct answer)
Reveal answer & explanationHide answer
The correct answer is D. Option D: Use AWS CloudFormation StackSets with AWS Organizations to deploy and manage IAM roles for the AWS accounts.
Explanation
An IAM role grants temporary, least-privilege permissions to AWS resources without long-term credentials. AWS IAM controls authenticated and authorized access to AWS resources with fine-grained policies. AWS Organizations centrally governs and secures multiple AWS accounts.