serverless-next.js icon indicating copy to clipboard operation
serverless-next.js copied to clipboard

Deprecating aws-cdk-lib.aws_lambda.Version#addAlias in nextjs-cdk-construct

Open azhong-git opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Seeing the following message when npm run cdk diff and getting different hash keys for S3ObjectKey, LambdaFunctionARN, .S3Key despite no change of code. They seem to be related.

[WARNING] aws-cdk-lib.aws_lambda.Version#addAlias is deprecated.
  Calling `addAlias` on a `Version` object will cause the Alias to be replaced on every function update. Call `function.addAlias()` or `new Alias()` instead.
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_lambda.Version#addAlias is deprecated.
  Calling `addAlias` on a `Version` object will cause the Alias to be replaced on every function update. Call `function.addAlias()` or `new Alias()` instead.
  This API will be removed in the next major release.

azhong-git avatar Jul 30 '22 07:07 azhong-git

this might cause the issue that updating lambda aliases breaks website for a short duration.

I see it happen very often

suil avatar Aug 12 '22 14:08 suil

can anyone merge the PR?

suil avatar Aug 16 '22 02:08 suil

anyone can take care of this?

suil avatar Oct 12 '22 19:10 suil