Closed
Description
Currently Fn::FindInMap
function only supports Fn::FindInMap
and Ref
.
2. Scope of request
e) other coverage-related issue with the resource/attribute/option
3. Expected behavior
Should be able use condition functions such as Fn::If
. This can help specify a default key in the map. Currently Fn::If
is not supported so trying to use a default key in a map results in an error stating the key was not found in the mapping.
4. Suggest specific test cases
Fn::FindInMap:
- DNS
- !If ["HasSpecialDNS", !Ref country, "default" ]
- "dns"
5. Helpful Links to speed up research and evaluation
https://stackoverflow.com/questions/35904204/default-value-on-mappings-aws-cloudformation
6. Category (required) - Will help with tagging and be easier to find by other users to +1
Use the categories as displayed in the AWS Management Console (simplified):
- Management (CloudTrail, Config...)