aws-cloudformation / aws-cloudformation/iac-model-evaluation

Duplicate primary identifiers in cloudformation/resourcegroups-group

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
11
Forks
15
PR merge metrics
No merged PRs in 30d

Description

https://github.com/aws-cloudformation/iac-model-evaluation/blob/0fc13f985eeb35c667e4536c474511d643e02f31/cloudformation/resourcegroups-group.yaml#L11

https://github.com/aws-cloudformation/iac-model-evaluation/blob/0fc13f985eeb35c667e4536c474511d643e02f31/cloudformation/resourcegroups-group.yaml#L24

These parameters need to be unique across both resources.
```
E3019 Primary identifiers {'Name': {'Ref': 'AWS::StackName'}} should have unique values across the resources {'TagGroup', 'CloudFormationStackGroup'}
cloudformation/resourcegroups-group.yaml:11:7

E3019 Primary identifiers {'Name': {'Ref': 'AWS::StackName'}} should have unique values across the resources {'TagGroup', 'CloudFormationStackGroup'}
cloudformation/resourcegroups-group.yaml:24:7
```

error from CloudFormation
```
test1 already exists in stack arn:aws:cloudformation:X:X:stack/test1/X
```

Contributor guide

Open the contributing guide

Research direction

Open cloudformation/resourcegroups-group.yaml at lines 11 and 24 and compare the primary identifiers for TagGroup and CloudFormationStackGroup. Reproduce the E3019 validation error, then make those identifiers unique and rerun the evaluation to confirm the duplicate-identifier error is gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, yaml
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.