Replies: 1 comment
-
Since the CDK is a wrapper around CloudFormation, I don't know that this is possible until CloudFormation deployment time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I read the source code correctly, there is no way to check whether a lambda function layer already exists before adding it.
The
lambda.Function
Construct only allows you to either:lambda.FunctionProps
fn.addLayers(...)
function defined hereHow would I check to see if a layer already exists on a function before adding it (after a function construct has already been created)? It doesn't seem like I should be accessing
_layers
variable directly.Beta Was this translation helpful? Give feedback.
All reactions