File tree 2 files changed +19
-19
lines changed
autoscaling-scheduler-terminate-instances
2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ resource "aws_autoscaling_group" "not_scheduled" {
107
107
# ## Terraform modules ###
108
108
109
109
module "autoscaling-stop-friday" {
110
- source = " ../../"
111
- name = " stop-autoscaling"
112
- cloudwatch_schedule_expression = " cron(0 23 ? * FRI *)"
113
- schedule_action = " stop"
114
- ec2_schedule = " false"
115
- rds_schedule = " false"
116
- autoscaling_schedule = " true"
117
- autoscaling_terminate_instances = " true"
118
- cloudwatch_alarm_schedule = " true"
110
+ source = " ../../"
111
+ name = " stop-autoscaling"
112
+ cloudwatch_schedule_expression = " cron(0 23 ? * FRI *)"
113
+ schedule_action = " stop"
114
+ ec2_schedule = " false"
115
+ rds_schedule = " false"
116
+ autoscaling_schedule = " true"
117
+ autoscaling_terminate_instances = " true"
118
+ cloudwatch_alarm_schedule = " true"
119
119
120
120
scheduler_tag = {
121
121
key = " tostop"
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ resource "aws_kms_key" "scheduler" {
6
6
}
7
7
8
8
resource "aws_docdb_cluster" "scheduled" {
9
- cluster_identifier = " docdb-cluster-scheduled"
10
- engine = " docdb"
11
- master_username = " foo"
12
- master_password = " mustbeeightchars"
13
- skip_final_snapshot = true
9
+ cluster_identifier = " docdb-cluster-scheduled"
10
+ engine = " docdb"
11
+ master_username = " foo"
12
+ master_password = " mustbeeightchars"
13
+ skip_final_snapshot = true
14
14
tags = {
15
15
tostop = " true"
16
16
terratest_tag = var.random_tag
@@ -28,11 +28,11 @@ resource "aws_docdb_cluster_instance" "scheduled" {
28
28
}
29
29
30
30
resource "aws_docdb_cluster" "not_scheduled" {
31
- cluster_identifier = " docdb-cluster-not-scheduled"
32
- engine = " docdb"
33
- master_username = " foo"
34
- master_password = " mustbeeightchars"
35
- skip_final_snapshot = true
31
+ cluster_identifier = " docdb-cluster-not-scheduled"
32
+ engine = " docdb"
33
+ master_username = " foo"
34
+ master_password = " mustbeeightchars"
35
+ skip_final_snapshot = true
36
36
tags = {
37
37
tostop = " false"
38
38
terratest_tag = var.random_tag
You can’t perform that action at this time.
0 commit comments