Permissions, Triggers, Asynchronous invocations present in $LATEST version but not in alias or published version

0

We created a lambda function with dynamo db and s3 permissions, apigw triggers. These configurations are present in the $LATEST version. Recently we are facing the cold start issues, we are trying to use provisioned concurrency. The provisioned concurrency needs a published version. When we publish the version, it is not having all the configuration that is present in $LATEST version.

How do we retain those configurations when we publish ? We use CDK to create the lambda function, it will be helpful if any leads on retain the configurations in published version of lambda using CDK.

已提問 1 年前檢視次數 197 次
2 個答案
1

Can you expand a little more on what configuration you are not seeing present? Does your CDK code contain the configurations needed and how are you publishing the stack?

profile picture
bpyle
已回答 1 年前
  • Triggers and Permissions are not getting moved to alias. After debugging it looks like we need to set the Triggers and Permissions needs to set separately to alias via cdk code.

0
已接受的答案

Triggers and Permissions and Function urls are not getting moved to alias automatically. After debugging it looks like we need to set the Triggers and Permissions and Function urls needs to set separately to alias via cdk code.

The execution role is reused between alias and $LATEST lambda function.

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南