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
+46-15
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,50 @@
1
1
# terraform-bluegreen
2
2
Terraform module to setup blue / green deployments
3
3
4
-
##blue-green
4
+
##blue-green
5
5
6
-
### Variables
6
+
### Inputs
7
7
8
-
See the [blue-green/variables.tf](blue-green/variables.tf) file.
8
+
| Name | Description | Type | Default | Required |
9
+
|------|-------------|:----:|:-----:|:-----:|
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 |
23
+
| 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 |
31
+
| 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 |
34
+
| 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 |
9
37
10
38
### Outputs
11
39
12
-
*`blue_asg_id`: (Number) blue autoscaling group id
13
-
*`green_asg_id`: (Number) green autoscaling group id
0 commit comments