core: Fn.findInMap Should Support Default Value #26125
Labels
@aws-cdk/core
Related to core CDK functionality
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p1
Describe the feature
Cloudformation recently added support for a default value in the
FindInMap
intrinsic function. AWS CDK should also support a default value.Use Case
We use the CDK to synthesize cloudformation templates for deployment in multiple environments. Thus we are not able to use language features to replicate this functionality. We need to be able to use a default value when a parameter value does not exist in a mapping.
Proposed Solution
Add a
Default
parameter to the find_in_map method that would be used if no match is found in the mapping based on the provided 1st/2nd level keys.Other Information
No response
Acknowledgements
CDK version used
latest
Environment details (OS name and version, etc.)
AWS Linux 2023, Ubuntu 22.04
The text was updated successfully, but these errors were encountered: