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.

demandé il y a un an198 vues
2 réponses
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
répondu il y a un an
  • 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
Réponse acceptée

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.

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions