Replies: 5 comments 1 reply
-
This difference in behaviour is not coming from the CDK. It's coming from either CloudFormation or the Lambda backend. In both cases, layers or functions, we treat them the exact same way by not passing the name property when not specified. Perhaps this is something we can hide under the CDK and make it a little better for the user. |
Beta Was this translation helpful? Give feedback.
-
Internal ref: tt/0503389452 |
Beta Was this translation helpful? Give feedback.
-
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Beta Was this translation helpful? Give feedback.
-
Commenting; this is still a nasty little issue. Potentially it should be solved at the Cloudformation level, as this is also a problem for people using Cloudformation directly. |
Beta Was this translation helpful? Give feedback.
-
I agree with some prior comments in this thread, it should be solved at the Cloudformation level. It's not ideal, but you can avoid this problem by specifying the I am going to convert this to a discussion so that people can find this info if they hit this behavior. |
Beta Was this translation helpful? Give feedback.
-
When I have two stacks and each stack deploys lambda layer with the same logical name CDK deploys only one lambda layer until logical names are made different. I would expect to have the layers prefixed with the stacks names (similar to Lambda functions) and two independent lambda layers deployed in this case.
Reproduction Steps
N/A
Error Log
No errors, just getting one layer instead of separate copies for each stack.
Environment
Other
This is 🐛 Bug Report
Beta Was this translation helpful? Give feedback.
All reactions