'Is there a AWS CloudWatch Log Export Task finish event?
I have a flow that once a day:
- (cron at hour H): Creates a AWS CloudWatch Export Tag
- (cron at hour H+2): Consumes the logs exported in step 1
Things were kept simple by design:
- The two steps are separate scripts that don't relate to each other.
- Step 2 doesn't have the task ID created in step 1.
- Step 2 is not aware of step 1 and doesn't know if the logs export task is finished.
I could add a mechanism by which the first script publishes the task ID somewhere and the second script consumes that task ID and queries CloudWatch to check if the task is finished and only proceeds when it is.
However, I'd prefer to keep it where there's no such handoff from step 1 to step 2.
What I'd like to do is when the log export is done, step 2 automatically starts.
👉 Is there an event "CloudWatch Export Task finished" that can be used to trigger the start of step 2?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
