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.

feita há um ano197 visualizações
2 Respostas
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
respondido há um ano
  • 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
Resposta aceita

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.

respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas