1

Is it possible to update programmatically (from a lambda function) the trigger of a (another) lambda function ?

UPDATE : more precisely the trigger is a Schedule Event (cron)

I found some actions like change the code or the runtime but didn't see anything concerning the trigger.

2
  • By "trigger" do you mean scheduled invocations? DynamoDB or Kinesis triggers? The answer is going to be different depending on exactly what you are trying to do. Commented Sep 29, 2016 at 14:13
  • Scheduled Events exactly. Commented Sep 29, 2016 at 15:18

1 Answer 1

3

Scheduled events fall under the CloudWatch service. That's why you aren't seeing them under the Lambda SDK. You have to create or update the CloudWatch Event that points to a Lambda target.

You didn't specify what language/SDK you are using, but this is the documentation for CloudWatch Events in the NodeJS SDK. It should be easy to find the corresponding documentation for whatever language/SDK you are using.

Here is official documentation showing how to update Lambda scheduled events via the AWS CLI.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.