Deployment, Provisioning, and Automation

A CloudFormation template creates an IAM role with an explicit RoleName. Deployment returns InsufficientCapabilities even though the deployment identity has the required IAM permissions. What should the administrator include when submitting the stack?

Show the answer

Correct answerA. The CAPABILITY_NAMED_IAM acknowledgement

AWhy this is right: An explicitly specified RoleName requires acknowledgement through CAPABILITY_NAMED_IAM.

BWhy not this: A service role supplies execution permissions but does not replace the named-IAM acknowledgement.

CWhy not this: iam:PassRole authorizes passing a role to a service; it does not provide the required capability acknowledgement.

DWhy not this: CAPABILITY_IAM alone is insufficient when the template specifies a custom IAM resource name.

CAPABILITY_NAMED_IAM acknowledges that the template creates IAM resources with custom names. CAPABILITY_IAM covers IAM resource creation without custom names and is insufficient for an explicitly named role.