Is your feature request related to a problem? Please describe.
Starting January 30, 2026 if another CloudFormation stack has an AWS::IAM::Policy with the same name there will be an error. Current behaviour is the last stack to create or update the policy will overwrite the policy configuration.
Switching to using AWS::IAM::RolePolicy will avoid errors from a name conflict.
Describe the feature you'd like
Migrate from AWS::IAM::Policy to AWS::IAM::RolePolicy
Additional context
I saw an AWS Health notification suggesting making this change.