Closed isuftin closed 6 days ago
I'll take a look into it. By quick a look the Fn::Transform is messing with the logic. We don't fully support Fn::Transform. Clearing up this issue may result in another error so need to think if we can handle a transform here.
@kddejong - Note that this was working in 1.3.4 so it looks like a regression happened >=1.3.5
I'm going to add some logic to handle Fn::Transform inside mappings. This will prevent the resolvers from failing and throwing the error you are seeing.
v0 version of these errors for reference. This should allow us to do a lot better than we were doing in v0. We can now reasonably handle Fn::Transforms inside of Mappings.
W1011 FindInMap first key "kms" doesn't exist in map "EnvironmentMapping" at Resources/EBS/Properties/KmsKeyId/Fn::FindInMap
local/issue/3416.json:11:65
E7001 Mapping EnvironmentMapping has invalid property at Parameters
local/issue/3416.json:23:11
CloudFormation Lint Version
1.3.6
What operating system are you using?
MacOS, Alpine Linux
Describe the bug
cfn-lint on FindInMap returns
E1011 'EnvironmentMapping' is not one of []
Expected behavior
No error
Reproduction template