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
+54-53
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# terraform-bluegreen
2
+
2
3
Terraform module to setup blue / green deployments
3
4
4
5
## blue-green
@@ -7,33 +8,36 @@ Terraform module to setup blue / green deployments
7
8
8
9
| Name | Description | Type | Default | Required |
9
10
|------|-------------|:----:|:-----:|:-----:|
10
-
| associate\_public\_ip\_address | (Optional) Associate a public ip address with an instance in a VPC | string |`"false"`| no |
11
-
| blue\_ami | (Required) The EC2 image ID to launch in the blue autoscaling group | string | n/a | yes |
12
-
| blue\_desired\_capacity | (Required) The number of Amazon EC2 instances that should be running in the blue autoscaling roup | string | n/a | yes |
13
-
| blue\_max\_size | (Required) The maximum size of the blue autoscaling group | string | n/a | yes |
14
-
| blue\_min\_size | (Required) The minimum size of the blue autoscaling group | string | n/a | yes |
15
-
| disk\_volume\_size | (Optional) The size of the volume in gigabytes | string |`"8"`| no |
16
-
| disk\_volume\_type | (Optional) The type of the volume. Default is standard | string |`"standard"`| no |
17
-
| environment | Environment to deploy on | string | n/a | yes |
18
-
| green\_ami | (Required) The EC2 image ID to launch in the green autoscaling group | string | n/a | yes |
19
-
| green\_desired\_capacity | (Required) The number of Amazon EC2 instances that should be running in the green autoscaling roup | string | n/a | yes |
20
-
| green\_max\_size | (Required) The maximum size of the green autoscaling group | string | n/a | yes |
21
-
| green\_min\_size | (Required) The minimum size of the green autoscaling group | string | n/a | yes |
22
-
| health\_check\_grace\_period | (Optional, Default: 300) Time (in seconds) after instance comes into service before checking health | string |`"300"`| no |
11
+
| associate\_public\_ip\_address | Associate a public ip address with an instance in a VPC | string |`"false"`| no |
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 |
15
+
| blue\_disk\_volume\_type | The EBS volume type for the Blue instances | string |`"gp2"`| no |
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 |
19
+
| blue\_user\_data | The user data to provide when launching the Blue instances | string |`"# Hello World"`| no |
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 |
23
+
| green\_disk\_volume\_type | The EBS volume type for the Green instances | string |`"gp2"`| no |
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 |
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 |
23
29
| health\_check\_type | The health check type to apply to the Autoscaling groups. | string |`"ELB"`| no |
24
-
| iam\_instance\_profile | (Optional) The IAM instance profile to associate with launched instances | string |`""`| no |
25
-
| instance\_type | (Required) The size of instance to launch | string | n/a | yes |
26
-
| key\_name | (Optional) The key name that should be used for the instance | string |`""`| no |
27
-
| loadbalancers | (Optional) A list of load balancer names to add to the autoscaling groups | list |`<list>`| no |
28
-
| name | Name of the stack | string | n/a | yes |
29
-
| project | Project name to use | string | n/a | yes |
30
-
| security\_groups | (Optional) A list of associated security group IDS | list |`<list>`| 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 |
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 |
31
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 |
32
-
| subnets |(Optional) A list of subnet IDs to launch resources in | list |`<list>`| no |
33
-
| tags |(Optional, Default: []) List of map of additional tags | list |`<list>`| 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 |
34
39
| target\_group\_arns | A list of aws_alb_target_group ARNs, for use with Application Load Balancing | list |`<list>`| no |
35
-
| termination\_policies | (Optional, Default: ['Default']) Order in termination policies to apply when choosing instances to terminate. | list |`<list>`| no |
36
-
| user\_data | (Optional) The user data to provide when launching the instance | string |`"# Hello World"`| no |
40
+
| termination\_policies | Order in termination policies to apply when choosing instances to terminate. | list |`<list>`| no |
37
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 |
38
42
39
43
### Outputs
@@ -42,26 +46,27 @@ Terraform module to setup blue / green deployments
42
46
|------|-------------|
43
47
| blue\_asg\_id | Blue autoscaling group id |
44
48
| green\_asg\_id | Green autoscaling group id |
49
+
| nonbinding\_blue\_asg\_name | This is the raw blue autoscaling group name, without creating a dependency with the actual autoscaling group resource |
50
+
| nonbinding\_green\_asg\_name | This is the raw green autoscaling group name, without creating a dependency with the actual autoscaling group resource |
@@ -76,21 +81,19 @@ Terraform module to setup alarms and autoscaling triggers for autoscaling
76
81
| adjustment\_down | The number of instances to remove when the alarm is triggered (the value has to be negative) | string |`"-1"`| no |
77
82
| adjustment\_type | What typ of adjustment needs to happen | string |`"ChangeInCapacity"`| no |
78
83
| adjustment\_up | The number of instances to add when the alarm is triggered | string |`"1"`| no |
79
-
| autoscaling\_group\_name| The name of the AS group this config needs to be applied | list | n/a | yes |
84
+
| autoscaling\_group\_names| The names of the Auto Scaling Groups this config needs to be applied to| list | n/a | yes |
80
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 |
81
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 |
82
87
| dimension\_name || string |`"AutoScalingGroupName"`| no |
83
88
| dimension\_value || string |`"false"`| no |
84
-
| environment | Environment to deploy on | string | n/a | yes |
85
-
| evaluation\_periods | the number of samples to evaluate | string |`"4"`| no |
89
+
| evaluation\_periods | The number of samples to evaluate | string |`"4"`| no |
86
90
| metric\_name | The metric the scaling is based upon | string |`"CPUUtilization"`| no |
87
-
| name | Name of the stack| string | n/a | yes |
88
-
| namespace |the namespace of the cloudwatch metric | string |`"AWS/EC2"`| no |
89
-
| num\_asg |the number of autoscaling groups passed | string |`"2"`| no |
90
-
| period\_down |he period in seconds over which the selected metric statistic is applied. | string |`"120"`| no |
91
-
| period\_up |he period in seconds over which the selected metric statistic is applied. | string |`"60"`| no |
91
+
| name | Name of the Auto Scaling Groups| string | n/a | yes |
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 |
92
96
| policy\_type | The policy type, either SimpleScaling or StepScaling | string |`"SimpleScaling"`| no |
93
-
| project | Project name to use | string | n/a | yes |
94
97
| statistic | The statistic to apply to the alarm's associated metric. Either of the following is supported: | string |`"Average"`| no |
95
98
| threshold\_down | The metric value to scale down | string |`"30"`| no |
96
99
| threshold\_up | The metric value to scale up | string |`"80"`| no |
@@ -99,11 +102,9 @@ Terraform module to setup alarms and autoscaling triggers for autoscaling
0 commit comments