Closed ImperviousPanda closed 5 years ago
Any single property which ends in Arn
has a check which expects an ARN to be present. This is what is generating the error. This check does not extend to other properties which do not have Arn explicitly in their name, like in your IAM policy example (where a resolved ARN would be expected, but cfn-lint does not check for it). What you are observing is expected, but not ideal behaviour.
cfn-python-lint has a rules engine that I imagine handles this better. https://github.com/aws-cloudformation/cfn-python-lint
Hope this helps, Marty
I just added an EventSourceMapping type to our CloudFormation template:
Which is causing the error:
In cfn-lint. We use this ImportValue other places in our code without utilizing the --import-values CLI option, but in this particular case it fails. Example in our code where it does not fail: