aws-s3-deployment: Support CfnMapping
(Fn::FindInMap) in deploy time values for Source.jsonData
#30369
Labels
@aws-cdk/aws-s3-deployment
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
As discussed in #25504 and addressed partially in #27237, support for
Fn::FindInMap
in deploy time values forSource.jsonData
is still needed.Currently, using
Fn::FindInMap
results in the following error:Use Case
In large APIs with custom response templates, such as code error mappings, it's necessary to use
CfnMapping
to avoid CloudFormation template size limits. Repeating the same mapping multiple times causes CloudFormation to raise an error due to template size constraints. By usingCfnMapping
, we can maintain a single instance of the mapping, reducing the overall template size.This is discussed here aws/aws-pdk#771
Proposed Solution
Extend the functionality introduced in #27237 to support
Fn::FindInMap
in deploy time values forSource.jsonData
.Other Information
No response
Acknowledgements
CDK version used
2.143.0
Environment details (OS name and version, etc.)
macOS Sonoma 14.5 Apple M1 Pro
The text was updated successfully, but these errors were encountered: