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
The following snippet shows something similar to what I am attempting to do (hiding exact details of course):
AWSTemplateFormatVersion: '2010-09-09'Transform: 'AWS::LanguageExtensions'
...
Resources:
Fn::ForEach::Loop:
- Id
- - A
- B
- C
- ScheduleGroup${Id}:
Type: AWS::Scheduler::ScheduleGroup # <--- complains about thisProperties:
Name: !Ref Id...
When I run this through cfn-lint, the linter is complaining that there is a Duplicate Type while doing transformation, specifically highlighting the Type field under ScheduleGroup${Id}. I believe I have followed the examples in AWS docs properly, specifically the 'Replicate Multiple Resources` of this article. I expect that the for each loop expands to the following template after the transformation is performed:
Am I using Fn::ForEach correctly? Or is this an issue with cfn-lint itself? Unfortunately in my situation, I cannot bypass cfn-lint and force the deployment of these resources.
The text was updated successfully, but these errors were encountered:
cfn-lint 1.18.4
The following snippet shows something similar to what I am attempting to do (hiding exact details of course):
When I run this through
cfn-lint
, the linter is complaining that there is a Duplicate Type while doing transformation, specifically highlighting theType
field underScheduleGroup${Id}
. I believe I have followed the examples in AWS docs properly, specifically the 'Replicate Multiple Resources` of this article. I expect that the for each loop expands to the following template after the transformation is performed:Am I using
Fn::ForEach
correctly? Or is this an issue withcfn-lint
itself? Unfortunately in my situation, I cannot bypasscfn-lint
and force the deployment of these resources.The text was updated successfully, but these errors were encountered: