Open iwanbolzern opened 2 years ago
Hey @iwanbolzern 👋🏻
Although that error message is not very helpful, Edge Lambdas are only supported in us-east-1
.
Are you able to reproduce this in the us-east-1
region? If not, then we should at least improve the error messaging to make this region requirement more clear.
Hi @ryparker,
Thank you for your response and explanations!
I know that lambda@edge is only supported in the us-east-1
region. But in my understand of the source code it should "dynamically" create a stack in us-east-1
and then use cross-region ssm resolution to export the Arn of the function. And if somebody is using this configuration and passing a role, the mentioned exception occur.
What is the problem?
If a role is passed to
EdgeFunction
created in a stack located outside ofus-east-1
it will result in a cyclic dependency error.Reproduction Steps
try to deploy the following stack to a location outside
us-east-1
:What did you expect to happen?
That the role is detached from the original stack an re-attached to the on-demand created
us-east-1
stack.What actually happened?
CDK CLI Version
2.16.0
Framework Version
No response
Node.js Version
v16.13.0
OS
Windows
Language
Python
Language Version
Python 3.9.6
Other information
No response