You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This only seems to occur when using a Mapping - the following does not produce an E3019
Transform: AWS::LanguageExtensionsResources:
Fn::ForEach::TestRole:
- Role
- - A
- B
- ${Role}:
Type: AWS::IAM::RoleProperties:
RoleName: !Ref RoleAssumeRolePolicyDocument:
Version: "2012-10-17"Statement:
- Principal:
AWS: '*'Effect: AllowAction: sts:AssumeRole
The text was updated successfully, but these errors were encountered:
georgealton
changed the title
False Positive for Primary Identifiers E3019 When using Fn::ForEach
False Positive for Primary Identifiers E3019 When using Fn::ForEach and value from a Mapping
Jun 24, 2024
georgealton
changed the title
False Positive for Primary Identifiers E3019 When using Fn::ForEach and value from a Mapping
False Positive for Primary Identifiers E30159 When using Fn::ForEach and value from a Mapping
Jun 24, 2024
georgealton
changed the title
False Positive for Primary Identifiers E30159 When using Fn::ForEach and value from a Mapping
False Positive for Primary Identifiers E3019 When using Fn::ForEach and value from a Mapping
Jun 24, 2024
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
The text was updated successfully, but these errors were encountered: