Closed zxkane closed 2 months ago
Looking into this. If I scan it with just the resource condition and the resource I don't get that result as we do apply condition logic when making this call. Weirdly enough on the larger template this fails for some reason
Resolved locally PR coming shortly.
Fix in v1.6.1
CloudFormation Lint Version
1.6.0
What operating system are you using?
Ubuntu
Describe the bug
When linting a crossing partitions template with below option
But I got the error,
However, the template could be deployed in
cn-north-1
without error due to the resource AWS::GlobalAccelerator::Listener having condition to exclude the creation regions, likecn-north-1
.Expected behavior
cfn-lint honors the condition while checking the resource availability.
Or have an option to suppress the certain error E3006 for resource 'AWS::GlobalAccelerator::Listener'.
Reproduction template
Below is template snippet,
The original template is large. You could download the artifact from here.