(cloudfront): cross region EdgeFunction does not work within a Stage #12092
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
If I create an
EdgeFunction
in a region other thanus-east-1
, it throws an error if it is being created in aStage
Reproduction Steps
What did you expect to happen?
I expect the
edge-lambda-stack-us-east-2
support stack to be created within the parent stage.What actually happened?
It looks like instead of creating the
edge-lambda-stack-us-east-2
support stack within the parentStage
, it is creating it within the rootApp
.It looks like it may be caused by this line:
aws-cdk/packages/@aws-cdk/aws-cloudfront/lib/experimental/edge-function.ts
Line 197 in 3b30123
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: