lambda: addAlias method fails when there are more than one lambda functions in a stack #25623
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
feature-request
A feature should be added or improved.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the feature
At the moment the lambda function
addAlias
method link composes the logic name asAlias${aliasName}
which causes error when there are multiple lambda functions in a stack with same alias.Use Case
I would like to use the SnapStart feature therefore needs to add an alias to all my lambda functions. However I can't use
addAlias
method because of the duplicate logical name.Proposed Solution
I'd suggest that the alias name is derived from not only the alias name itself, but also the lambda version so as to make it more unique.
Other Information
No response
Acknowledgements
CDK version used
2.79.1
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: