You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ module "stop_ec2_instance" {
30
30
autoscaling_schedule = "false"
31
31
ec2_schedule = "true"
32
32
rds_schedule = "false"
33
+
cloudwatch_alarm_schedule = "false"
33
34
resources_tag = {
34
35
key = "tostop"
35
36
value = "true"
@@ -44,6 +45,7 @@ module "start_ec2_instance" {
44
45
autoscaling_schedule = "false"
45
46
ec2_schedule = "true"
46
47
rds_schedule = "false"
48
+
cloudwatch_alarm_schedule = "false"
47
49
resources_tag = {
48
50
key = "tostop"
49
51
value = "true"
@@ -53,9 +55,9 @@ module "start_ec2_instance" {
53
55
54
56
## Examples
55
57
56
-
*[Autoscaling scheduler](https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/tree/master/examples/autoscaling-schedule) - Create lambda functions to suspend autoscaling group with tag `tostop = true` and terminate its ec2 instances on Friday at 23:00 Gmt and start them on Monday at 07:00 GMT
57
-
*[EC2 scheduler](https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/tree/master/examples/ec2-schedule) - Create lambda functions to stop ec2 with tag `tostop = true` on Friday at 23:00 Gmt and start them on Monday at 07:00 GMT
58
-
*[Rds aurora - mariadb scheduler](https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/tree/master/examples/rds-schedule) - Create lambda functions to stop rds mariadb and aurora cluster with tag `tostop = true` on Friday at 23:00 Gmt and start them on Monday at 07:00 GMT
58
+
*[Autoscaling scheduler](https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/tree/master/examples/autoscaling-scheduler) - Create lambda functions to suspend autoscaling group with tag `tostop = true` and terminate its ec2 instances on Friday at 23:00 Gmt and start them on Monday at 07:00 GMT
59
+
*[EC2 scheduler](https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/tree/master/examples/ec2-scheduler) - Create lambda functions to stop ec2 with tag `tostop = true` on Friday at 23:00 Gmt and start them on Monday at 07:00 GMT
60
+
*[Rds aurora - mariadb scheduler](https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/tree/master/examples/rds-scheduler) - Create lambda functions to stop rds mariadb and aurora cluster with tag `tostop = true` on Friday at 23:00 Gmt and start them on Monday at 07:00 GMT
59
61
*[test fixture](https://github.com/diodonfrost/terraform-aws-lambda-scheduler-stop-start/tree/master/examples/test_fixture) - Deploy environment for testing module
| name | Define name to use for lambda function, cloudwatch event and iam role | string | n/a | yes |
66
68
| custom_iam_role_arn | Custom IAM role arn for the scheduling lambda | string | null | no |
69
+
| tags | Custom tags on aws resources | map | null | no |
67
70
| kms_key_arn | The ARN for the KMS encryption key. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key | string | null | no |
68
71
| aws_regions | A list of one or more aws regions where the lambda will be apply, default use the current region | list | null | no |
0 commit comments