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 공식업데이트됨 7달 전
I'm curious, why do you need to include a 5-second wait between sending to the other bucket?