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.hcl
file in the project root as needed. - Execute
shadow fax *.tf.tpl
. - Run
terraform init
,plan
, andapply
in the project root to create the SNS topic. - Add the
topic_arn
to theshadowconf.hcl
file in the project root. - Execute
shadow fax terraform.tpl
to generate theterraform
directory. - Change into the
terraform
directory and executeterraform init
,plan
, andapply
.