v1: E1019 Exception 'maximum recursion depth exceeded while calling a Python object' raised while validating 'enum' when 'Ref' is resolved when ... whe 'Ref' is resolved #3321
This is more trick if its a bug, AWS do understand it and does it correct though.
AWS figure out that it inner !Ref should not use the name in !Sub but the rest in the template but as they are the same the Sub named variable is not needed.
Expected as AWS do accept that structure and it works correct this should be more of a refactoring recommendation but deferentially not be a run away recursion.
CloudFormation Lint Version
v1.3.0
What operating system are you using?
Ubuntu
Describe the bug
This is more trick if its a bug, AWS do understand it and does it correct though.
AWS figure out that it inner !Ref should not use the name in !Sub but the rest in the template but as they are the same the Sub named variable is not needed.
the above is the same as this:
Expected behavior
Expected as AWS do accept that structure and it works correct this should be more of a refactoring recommendation but deferentially not be a run away recursion.
Reproduction template