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
* Upgrade tf code to 0.12
* Fix tf interpolation
* Fix type
* Use null for spot_price by default
* Set some more nulls as defaults
* Bump default tf version in the ci task
Copy file name to clipboardexpand all lines: README.md
+30-30
Original file line number
Diff line number
Diff line change
@@ -8,36 +8,36 @@ Terraform module to setup blue / green deployments
8
8
9
9
| Name | Description | Type | Default | Required |
10
10
|------|-------------|:----:|:-----:|:-----:|
11
-
| associate\_public\_ip\_address | Associate a public ip address with an instance in a VPC |string|`"false"`| no |
11
+
| associate\_public\_ip\_address | Associate a public ip address with an instance in a VPC |bool|`false`| no |
12
12
| blue\_ami | The EC2 image ID to launch in the Blue autoscaling group | string | n/a | yes |
13
-
| blue\_desired\_capacity | The number of Amazon EC2 instances that should be running in the blue autoscaling roup |string| n/a | yes |
14
-
| blue\_disk\_volume\_size | The size of the EBS volume in GB for the Blue instances |string|`"8"`| no |
13
+
| blue\_desired\_capacity | The number of Amazon EC2 instances that should be running in the blue autoscaling roup |number| n/a | yes |
14
+
| blue\_disk\_volume\_size | The size of the EBS volume in GB for the Blue instances |number|`8`| no |
15
15
| blue\_disk\_volume\_type | The EBS volume type for the Blue instances | string |`"gp2"`| no |
16
16
| blue\_instance\_type | The Blue instance type to launch | string | n/a | yes |
17
-
| blue\_max\_size | The maximum size of the blue autoscaling group |string| n/a | yes |
18
-
| blue\_min\_size | The minimum size of the blue autoscaling group |string| n/a | yes |
17
+
| blue\_max\_size | The maximum size of the blue autoscaling group |number| n/a | yes |
18
+
| blue\_min\_size | The minimum size of the blue autoscaling group |number| n/a | yes |
19
19
| blue\_user\_data | The user data to provide when launching the Blue instances | string |`"# Hello World"`| no |
20
20
| green\_ami | The EC2 image ID to launch in the Green autoscaling group | string | n/a | yes |
21
-
| green\_desired\_capacity | The number of Amazon EC2 instances that should be running in the green autoscaling roup |string| n/a | yes |
22
-
| green\_disk\_volume\_size | The size of the EBS volume in GB for the Green instances |string|`"8"`| no |
21
+
| green\_desired\_capacity | The number of Amazon EC2 instances that should be running in the green autoscaling roup |number| n/a | yes |
22
+
| green\_disk\_volume\_size | The size of the EBS volume in GB for the Green instances |number|`8`| no |
23
23
| green\_disk\_volume\_type | The EBS volume type for the Green instances | string |`"gp2"`| no |
24
24
| green\_instance\_type | The Green instance type to launch | string | n/a | yes |
25
-
| green\_max\_size | The maximum size of the green autoscaling group |string| n/a | yes |
26
-
| green\_min\_size | The minimum size of the green autoscaling group |string| n/a | yes |
25
+
| green\_max\_size | The maximum size of the green autoscaling group |number| n/a | yes |
26
+
| green\_min\_size | The minimum size of the green autoscaling group |number| n/a | yes |
27
27
| green\_user\_data | The user data to provide when launching the Green instances | string |`"# Hello World"`| no |
28
-
| health\_check\_grace\_period | Time (in seconds) after instance comes into service before checking health |string|`"300"`| no |
28
+
| health\_check\_grace\_period | Time (in seconds) after instance comes into service before checking health |number|`300`| no |
29
29
| health\_check\_type | The health check type to apply to the Autoscaling groups. | string |`"ELB"`| no |
30
-
| iam\_instance\_profile | The IAM instance profile to associate with launched instances | string |`""`| no |
31
-
| initial\_lifecycle\_hooks | One or more [Lifecycle Hooks](http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.html) to attach to the autoscaling group before instances are launched. The syntax is exactly the same as the separate [`aws_autoscaling_lifecycle_hook`](https://www.terraform.io/docs/providers/aws/r/autoscaling_lifecycle_hooks.html) resource, without the autoscaling_group_name attribute | list |`<list>`| no |
32
-
| key\_name | The key name that should be used for the instance | string |`""`| no |
33
-
| loadbalancers | A list of load balancer names to add to the autoscaling groups | list |`<list>`| no |
30
+
| iam\_instance\_profile | The IAM instance profile to associate with launched instances | string |`null`| no |
31
+
| initial\_lifecycle\_hooks | One or more [Lifecycle Hooks](http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.html) to attach to the autoscaling group before instances are launched. The syntax is exactly the same as the separate [`aws_autoscaling_lifecycle_hook`](https://www.terraform.io/docs/providers/aws/r/autoscaling_lifecycle_hooks.html) resource, without the autoscaling_group_name attribute | list(map(string))|`[]`| no |
32
+
| key\_name | The key name that should be used for the instance | string |`null`| no |
33
+
| loadbalancers | A list of load balancer names to add to the autoscaling groups | list(string)|`[]`| no |
34
34
| name | Name of the Auto Scaling Groups | string | n/a | yes |
35
-
| security\_groups | A list of associated security group IDS | list |`<list>`| no |
35
+
| security\_groups | A list of associated security group IDS | list(string)|`[]`| no |
36
36
| spot\_price | Spot price you want to pay for your instances. By default this is empty and we will use on-demand instances | string |`""`| no |
37
-
| subnets | A list of subnet IDs to launch resources in | list |`<list>`| no |
38
-
| tags | List as a map of additional tags | list |`<list>`| no |
39
-
| target\_group\_arns | A list of aws_alb_target_group ARNs, for use with Application Load Balancing | list |`<list>`| no |
40
-
| termination\_policies | Order in termination policies to apply when choosing instances to terminate. | list |`<list>`| no |
37
+
| subnets | A list of subnet IDs to launch resources in | list(string)|`[]`| no |
38
+
| tags | List as a map of additional tags | list(map(string))|`[]`| no |
39
+
| target\_group\_arns | A list of aws_alb_target_group ARNs, for use with Application Load Balancing | list(string)|`[]`| no |
40
+
| termination\_policies | Order in termination policies to apply when choosing instances to terminate. | list(string)|`[]`| no |
41
41
| wait\_for\_capacity\_timeout | A maximum duration that Terraform should wait for ASG instances to be healthy before timing out. Setting this to 0 causes Terraform to skip all Capacity Waiting behavior. | string |`"10m"`| no |
42
42
43
43
### Outputs
@@ -78,25 +78,25 @@ Terraform module to setup alarms and autoscaling triggers for autoscaling
78
78
79
79
| Name | Description | Type | Default | Required |
80
80
|------|-------------|:----:|:-----:|:-----:|
81
-
| adjustment\_down | The number of instances to remove when the alarm is triggered (the value has to be negative) |string|`"-1"`| no |
81
+
| adjustment\_down | The number of instances to remove when the alarm is triggered (the value has to be negative) |number|`-1`| no |
82
82
| adjustment\_type | What typ of adjustment needs to happen | string |`"ChangeInCapacity"`| no |
83
-
| adjustment\_up | The number of instances to add when the alarm is triggered |string|`"1"`| no |
83
+
| adjustment\_up | The number of instances to add when the alarm is triggered |number|`1`| no |
84
84
| autoscaling\_group\_names | The names of the Auto Scaling Groups this config needs to be applied to | list | n/a | yes |
85
-
| cooldown\_down | The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. |string|`"600"`| no |
86
-
| cooldown\_up | The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. |string|`"300"`| no |
85
+
| cooldown\_down | The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. |number|`600`| no |
86
+
| cooldown\_up | The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. |number|`300`| no |
87
87
| dimension\_name || string |`"AutoScalingGroupName"`| no |
88
-
| dimension\_value ||string|`"false"`| no |
89
-
| evaluation\_periods | The number of samples to evaluate |string|`"4"`| no |
88
+
| dimension\_value ||bool|`false`| no |
89
+
| evaluation\_periods | The number of samples to evaluate |number|`4`| no |
90
90
| metric\_name | The metric the scaling is based upon | string |`"CPUUtilization"`| no |
91
91
| name | Name of the Auto Scaling Groups | string | n/a | yes |
92
92
| namespace | The namespace of the cloudwatch metric | string |`"AWS/EC2"`| no |
93
-
| num\_asg | The number of autoscaling groups passed |string|`"2"`| no |
94
-
| period\_down | The period in seconds over which the selected metric statistic is applied. |string|`"120"`| no |
95
-
| period\_up | The period in seconds over which the selected metric statistic is applied. |string|`"60"`| no |
93
+
| num\_asg | The number of autoscaling groups passed |number|`2`| no |
94
+
| period\_down | The period in seconds over which the selected metric statistic is applied. |number|`120`| no |
95
+
| period\_up | The period in seconds over which the selected metric statistic is applied. |number|`60`| no |
96
96
| policy\_type | The policy type, either SimpleScaling or StepScaling | string |`"SimpleScaling"`| no |
97
97
| statistic | The statistic to apply to the alarm's associated metric. Either of the following is supported: | string |`"Average"`| no |
98
-
| threshold\_down | The metric value to scale down |string|`"30"`| no |
99
-
| threshold\_up | The metric value to scale up |string|`"80"`| no |
98
+
| threshold\_down | The metric value to scale down |number|`30`| no |
99
+
| threshold\_up | The metric value to scale up |number|`80`| no |
0 commit comments