Skip to content

Commit 552baaa

Browse files
author
Rafael Felix Correa
committed
updated README
1 parent 441b8c4 commit 552baaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ module "lambda" {
5454
subnet_ids = ["${aws_subnet.test.id}"]
5555
security_group_ids = ["${aws_security_group.test.id}"]
5656
}
57+
58+
// Trigger from a Cloudwatch Events rule.
59+
attach_cloudwatch_rule_config = true
60+
cloudwatch_rule_config {
61+
name = "scheduled-run"
62+
description = "Run my lambda every day at 8pm"
63+
schedule_expression = "cron(0 20 * * ? *)"
64+
}
5765
}
5866
```
5967

0 commit comments

Comments
 (0)