2 個答案
- 最新
- 最多得票
- 最多評論
3
Use a Step Function. A Wait state allows the step function to wait for a specified time interval - https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-wait-state.html
You can then create a Task to invoke the lambda function - https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-task-state.html
2
You can't really wait for a Lambda function to be executed. You need to define what is the trigger that invokes the function. I am not sure what exactly you are trying to do, but I think you have a few options:
- You can use EventBridge scheduled events if you need to invoke a function on some schedule.
- Send a delayed messages to SQS with a Lambda trigger.
- Launch a state machine and use a wait state.
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 10 個月前
I'm curious, why do you need to include a 5-second wait between sending to the other bucket?