简体   繁体   中英

aws lambda sending a timed http request

I am new to AWS lambda. Will like to seek advice from the experts here. I understand that Lambda is activated based on a trigger. If I wanted to send a timed http request (for example, send a http request 4 hours later), is there any recommendations to do it.

Yes, you can configure scheduled AWS Lambda Triggers using Cloudwatch.

Tutorial: Schedule AWS Lambda Functions Using CloudWatch Events

To create a rule using the console

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/
  2. In the navigation pane, choose Events, Create rule.
  3. For Event Source, do the following:

    a. Choose Schedule.

    b.Choose Fixed rate of and specify the schedule interval (for example, 5 minutes).

  4. For Targets, choose Add target, Lambda function.

  5. For Function, select the Lambda function that you created.

  6. Choose Configure details.

  7. For Rule definition, type a name and description for the rule.

  8. Choose Create rule.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM