Using Fn::ForEach to generate Resources cfn-lint reports that the PrimaryIdentifier is not unique across resources. I've only tried this with AWS::IAM::Role so not sure how many Resource Types this affects.
E3019 Primary identifiers {'RoleName': 'Bravo'} should have unique values across the resources {'A', 'B'}
Expected behavior
When using Fn::ForEach cfn-lint should evaluate that PrimaryIdentifiers are unique.
CloudFormation Lint Version
cfn-lint 1.3.3
What operating system are you using?
Arch
Describe the bug
Using Fn::ForEach to generate Resources cfn-lint reports that the PrimaryIdentifier is not unique across resources. I've only tried this with
AWS::IAM::Role
so not sure how many Resource Types this affects.Expected behavior
When using Fn::ForEach cfn-lint should evaluate that PrimaryIdentifiers are unique.
Reproduction template
This only seems to occur when using a Mapping - the following does not produce an E3019