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
+26-4
Original file line number
Diff line number
Diff line change
@@ -34,21 +34,43 @@ module "bluegreen" {
34
34
}
35
35
```
36
36
37
-
## cpu-scaling
37
+
## scaling
38
38
Terraform module to setup alarms and autoscaling triggers for autoscaling
39
39
40
40
### Variables
41
41
42
-
See the [cpu-scaling/variables.tf](cpu-scaling/variables.tf) file.
42
+
| Name | Description | Type | Default | Required |
43
+
|------|-------------|:----:|:-----:|:-----:|
44
+
| adjustment\_down | The number of instances to remove when the alarm is triggered (the value has to be negative) | string |`"-1"`| no |
45
+
| adjustment\_type | What typ of adjustment needs to happen | string |`"ChangeInCapacity"`| no |
46
+
| adjustment\_up | The number of instances to add when the alarm is triggered | string |`"1"`| no |
47
+
| autoscaling\_group\_name | The name of the AS group this config needs to be applied | list | n/a | yes |
48
+
| cooldown\_down | The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. | string |`"600"`| no |
49
+
| cooldown\_up | The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. | string |`"300"`| no |
50
+
| dimension\_name || string |`"AutoScalingGroupName"`| no |
51
+
| dimension\_value || string |`"false"`| no |
52
+
| environment | Environment to deploy on | string | n/a | yes |
53
+
| evaluation\_periods | the number of samples to evaluate | string |`"4"`| no |
54
+
| metric\_name | The metric the scaling is based upon | string |`"CPUUtilization"`| no |
55
+
| name | Name of the stack | string | n/a | yes |
56
+
| namespace | the namespace of the cloudwatch metric | string |`"AWS/EC2"`| no |
57
+
| num\_asg | the number of autoscaling groups passed | string |`"2"`| no |
58
+
| period\_down | he period in seconds over which the selected metric statistic is applied. | string |`"120"`| no |
59
+
| period\_up | he period in seconds over which the selected metric statistic is applied. | string |`"60"`| no |
60
+
| policy\_type | The policy type, either SimpleScaling or StepScaling | string |`"SimpleScaling"`| no |
61
+
| project | Project name to use | string | n/a | yes |
62
+
| statistic | The statistic to apply to the alarm's associated metric. Either of the following is supported: | string |`"Average"`| no |
63
+
| threshold\_down | The metric value to scale down | string |`"30"`| no |
64
+
| threshold\_up | The metric value to scale up | string |`"80"`| no |
0 commit comments