Skip to content

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.

asked 2 years ago727 views

2 Answers
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.

answered 2 years ago

0
EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.