Passer au contenu

Lambda Invoke Manually from jenkins using AWS Lambda Invoke

0

Hi,

I am using aws lambda invoke but sometimes lambda is invoking multiple times.Can you please let me know the options to trigger lambda only once when i run the jenkins pipeline. My requirement is to trigger lambda manually not schedule or through sqs.

demandé il y a 2 ans771 vues

2 réponses
1

I don't have a good overview of the current environment setup but there could be a few reasons why a Lambda function could be invoked more than once, a few that I've encountered were related to:

  1. On errors: A function can be invoked multiple times depending on the number of configured retries and type of error. You can read more about this from the API docs. It may be useful to verify the CloudWatch Logs generated by the function in execution to see if there is an error.
  2. On timeouts: On long running functions that exceed the timeout your function may be invoked more than once, if this is the case, increasing the timeout will help. This was documented as an issue in the pipeline-aws-plugin for jekinsci. That thread may be useful troubleshooting your issue.

Hope this helps in your troubleshooting.

répondu il y a 2 ans

0
EXPERT

répondu il y a 2 ans

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.