Replies: 1 comment
-
|
For The modern If you must preserve legacy
I would not do a single blind migration across commercial and China regions. Create an internal construct like: new AppDistribution(this, 'Distribution', {
partition: Stack.of(this).partition,
...
})and let it choose the implementation per partition. Then compare the synthesized template and test in So my answer is: the deprecation is real, but for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello CDK team,
We run CloudFront in AWS China (aws-cn). Today we still use the L2 CloudFrontWebDistribution construct because China does not support the newer cache / origin policy model the way commercial regions do, and ForwardedValues remains the practical way to express forwarding there.
We are now getting deprecation notices for CloudFrontWebDistribution, with messaging that it will be removed in a future major release. That puts us in an awkward spot: the deprecated API is still the one that maps most naturally to legacy ForwardedValues, while the recommended Distribution path is built around cache policies and origin request policies, which are unsupported in China (see e.g. #13584, #31033).
Questions:
What is the intended direction for China before CloudFrontWebDistribution is removed? Is first-class support for legacy ForwardedValues (or an equivalent) on Distribution on the roadmap, or should we plan on documented escape hatches long term?
What do you recommend we do between now and the major release that drops CloudFrontWebDistribution: migrate early to Distribution and maintain China-specific overrides (e.g. L1 patches for ForwardedValues), stay on CloudFrontWebDistribution until replacement is clearer, or something else?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions