AWS cloud scheduler with second-level precision based on Terraform, CloudWatch, Lambda, and SNS.
+------------+ +-------+
| | | |
| CloudWatch | | SNS |
| Events +---+--------------------> cron |
| 1+ Minute | | | Topic |
| Granularity| | | |
| | | +----------+ +---^---+
+------------+ | | | |
| | Lambda | |
+---> Seconds +---------+
| Notifier |
| |
+----------+
Using CloudWatch to trigger Lambda execution at a given intervals, the Lambda app(s) then trigger SNS notifications at second-level granularity. The SNS topic can then be used to spawn Lambda functions to do your bidding.
- Configure the
shadowconf.hclfile in the project root as needed. - Execute
shadow fax *.tf.tpl. - Run
terraform init,plan, andapplyin the project root to create the SNS topic. - Add the
topic_arnto theshadowconf.hclfile in the project root. - Execute
shadow fax terraform.tplto generate theterraformdirectory. - Change into the
terraformdirectory and executeterraform init,plan, andapply.