All checks
Medium CloudFormation · regional

CloudFormation stacks should have associated service roles

Flags AWS CloudFormation stacks that do not have a service role associated. Without an explicit service role, the stack uses the calling principal's permissions, which makes least-privilege control of stack operations impossible.

service
CloudFormation
severity
Medium
scope
evaluated in every region

How to fix it

Associate a least-privilege IAM service role with every CloudFormation stack.

  1. Create an IAM role with the minimum permissions needed to manage the stack's resources.
  2. Open the CloudFormation console and select the stack.
  3. Choose Update, then Use current template.
  4. Under Permissions, set the IAM role to the new service role.
  5. Continue through Review and submit the update.

See which of your accounts this check is failing on.

Book a demo