|
26 | 26 | | domain_name_servers | the internal DNS servers, defaults to the internal route53 server of the VPC | `""` | no |
|
27 | 27 | | region | the AWS region in which resources are created, you must set the availability_zones variable as well if you define this value to something other than the default | `"us-west-2"` | no |
|
28 | 28 | | cidr | the CIDR block to provision for the VPC, if set to something other than the default, both internal_subnets and external_subnets have to be defined as well | `"10.30.0.0/16"` | no |
|
29 |
| -| internal_subnets | a comma-separated list of CIDRs for internal subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones | `"10.30.0.0/19,10.30.64.0/19,10.30.128.0/19"` | no | |
30 |
| -| external_subnets | a comma-separated list of CIDRs for external subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones | `"10.30.32.0/20,10.30.96.0/20,10.30.160.0/20"` | no | |
31 |
| -| availability_zones | a comma-separated list of availability zones, defaults to all AZ of the region, if set to something other than the defaults, both internal_subnets and external_subnets have to be defined as well | `"us-west-2a,us-west-2b,us-west-2c"` | no | |
| 29 | +| internal_subnets | a list of CIDRs for internal subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones | - | yes | |
| 30 | +| external_subnets | a list of CIDRs for external subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones | - | yes | |
| 31 | +| availability_zones | a comma-separated list of availability zones, defaults to all AZ of the region, if set to something other than the defaults, both internal_subnets and external_subnets have to be defined as well | - | yes | |
| 32 | +| bastion_instance_type | Instance type for the bastion | `"t2.micro"` | no | |
| 33 | +| ecs_cluster_name | the name of the cluster, if not specified the variable name will be used | `""` | no | |
32 | 34 | | ecs_instance_type | the instance type to use for your default ecs cluster | `"m4.large"` | no |
|
33 |
| -| ecs_instance_ebs_optimized | use EBS - not all instance types support EBS | `"true"` | no | |
| 35 | +| ecs_instance_ebs_optimized | use EBS - not all instance types support EBS | `true` | no | |
34 | 36 | | ecs_min_size | the minimum number of instances to use in the default ecs cluster | `3` | no |
|
35 | 37 | | ecs_max_size | the maximum number of instances to use in the default ecs cluster | `100` | no |
|
36 | 38 | | ecs_desired_capacity | the desired number of instances to use in the default ecs cluster | `3` | no |
|
|
52 | 54 | | external_elb | Security group for external ELBs. |
|
53 | 55 | | internal_subnets | Comma separated list of internal subnet IDs. |
|
54 | 56 | | external_subnets | Comma separated list of external subnet IDs. |
|
55 |
| -| internal_route_tables | Comma separated list of internal route table IDs. | |
56 |
| -| external_route_tables | The external route table ID. | |
57 | 57 | | iam_role | ECS Service IAM role. |
|
58 | 58 | | log_bucket_id | S3 bucket ID for ELB logs. |
|
59 | 59 | | domain_name | The internal domain name, e.g "stack.local". |
|
|
63 | 63 | | vpc_security_group | The VPC security group ID. |
|
64 | 64 | | vpc_id | The VPC ID. |
|
65 | 65 | | ecs_cluster_security_group_id | The default ECS cluster security group ID. |
|
| 66 | +| internal_route_tables | Comma separated list of internal route table IDs. | |
| 67 | +| external_route_tables | The external route table ID. | |
66 | 68 |
|
67 | 69 | # bastion
|
68 | 70 |
|
|
129 | 131 | |------|-------------|:-----:|:-----:|
|
130 | 132 | | region | The AWS region | - | yes |
|
131 | 133 | | cidr | The CIDR block to provision for the VPC | - | yes |
|
132 |
| -| default_ecs_ami | | - | yes | |
133 |
| -| default_log_account_ids | | - | yes | |
| 134 | +| default_ecs_ami | | `<map>` | no | |
| 135 | +| default_log_account_ids | | `<map>` | no | |
134 | 136 |
|
135 | 137 | ## Outputs
|
136 | 138 |
|
|
199 | 201 | name = "cdn"
|
200 | 202 | vpc_id = "vpc-id"
|
201 | 203 | image_id = "ami-id"
|
202 |
| - subnet_ids = "1,2" |
| 204 | + subnet_ids = ["1" ,"2"] |
203 | 205 | key_name = "ssh-key"
|
204 | 206 | security_groups = "1,2"
|
205 | 207 | iam_instance_profile = "id"
|
206 | 208 | region = "us-west-2"
|
207 |
| - availability_zones = "a,b" |
| 209 | + availability_zones = ["a", "b"] |
208 | 210 | instance_type = "t2.small"
|
209 | 211 | }
|
210 | 212 |
|
|
218 | 220 | | environment | Environment tag, e.g prod | - | yes |
|
219 | 221 | | vpc_id | VPC ID | - | yes |
|
220 | 222 | | image_id | AMI Image ID | - | yes |
|
221 |
| -| subnet_ids | Comma separated list of subnet IDs | - | yes | |
| 223 | +| subnet_ids | List of subnet IDs | - | yes | |
222 | 224 | | key_name | SSH key name to use | - | yes |
|
223 | 225 | | security_groups | Comma separated list of security groups | - | yes |
|
224 | 226 | | iam_instance_profile | Instance profile ARN to use in the launch configuration | - | yes |
|
225 | 227 | | region | AWS Region | - | yes |
|
226 |
| -| availability_zones | Comma separated list of AZs | - | yes | |
| 228 | +| availability_zones | List of AZs | - | yes | |
227 | 229 | | instance_type | The instance type to use, e.g t2.small | - | yes |
|
228 | 230 | | instance_ebs_optimized | When set to true the instance will be launched with EBS optimized turned on | `true` | no |
|
229 | 231 | | min_size | Minimum instance count | `3` | no |
|
|
315 | 317 | | environment | The environment tag, e.g prod | - | yes |
|
316 | 318 | | vpc_id | The VPC ID to use | - | yes |
|
317 | 319 | | zone_id | The Route53 Zone ID where the DNS record will be created | - | yes |
|
318 |
| -| security_groups | A comma-separated list of security group IDs | - | yes | |
319 |
| -| subnet_ids | A comma-separated list of subnet IDs | - | yes | |
320 |
| -| availability_zones | A comma-separated list of availability zones | - | yes | |
| 320 | +| security_groups | A list of security group IDs | - | yes | |
| 321 | +| subnet_ids | A list of subnet IDs | - | yes | |
| 322 | +| availability_zones | A list of availability zones | - | yes | |
321 | 323 | | database_name | The database name | - | yes |
|
322 | 324 | | master_username | The master user username | - | yes |
|
323 | 325 | | master_password | The master user password | - | yes |
|
|
418 | 420 | | protocol | The ELB protocol, HTTP or TCP | `"HTTP"` | no |
|
419 | 421 | | iam_role | IAM Role ARN to use | - | yes |
|
420 | 422 | | zone_id | The zone ID to create the record in | - | yes |
|
| 423 | +| deployment_minimum_healthy_percent | lower limit (% of desired_count) of # of running tasks during a deployment | `100` | no | |
| 424 | +| deployment_maximum_percent | upper limit (% of desired_count) of # of running tasks during a deployment | `200` | no | |
421 | 425 |
|
422 | 426 | ## Outputs
|
423 | 427 |
|
|
472 | 476 | | Name | Description | Default | Required |
|
473 | 477 | |------|-------------|:-----:|:-----:|
|
474 | 478 | | cidr | The CIDR block for the VPC. | - | yes |
|
475 |
| -| external_subnets | Comma separated list of subnets | - | yes | |
476 |
| -| internal_subnets | Comma separated list of subnets | - | yes | |
| 479 | +| external_subnets | List of external subnets | - | yes | |
| 480 | +| internal_subnets | List of internal subnets | - | yes | |
477 | 481 | | environment | Environment tag, e.g prod | - | yes |
|
478 |
| -| availability_zones | Comma separated list of availability zones | - | yes | |
| 482 | +| availability_zones | List of availability zones | - | yes | |
479 | 483 | | name | Name tag, e.g stack | `"stack"` | no |
|
480 | 484 |
|
481 | 485 | ## Outputs
|
|
484 | 488 | |------|-------------|
|
485 | 489 | | id | The VPC ID |
|
486 | 490 | | external_subnets | A comma-separated list of subnet IDs. |
|
487 |
| -| internal_subnets | A comma-separated list of subnet IDs. | |
| 491 | +| internal_subnets | A list of subnet IDs. | |
488 | 492 | | security_group | The default VPC security group ID. |
|
489 | 493 | | availability_zones | The list of availability zones of the VPC. |
|
490 | 494 | | internal_rtb_id | The internal route table ID. |
|
|
533 | 537 | | desired_count | The desired count | `2` | no |
|
534 | 538 | | memory | The number of MiB of memory to reserve for the container | `512` | no |
|
535 | 539 | | cpu | The number of cpu units to reserve for the container | `512` | no |
|
| 540 | +| deployment_minimum_healthy_percent | lower limit (% of desired_count) of # of running tasks during a deployment | `100` | no | |
| 541 | +| deployment_maximum_percent | upper limit (% of desired_count) of # of running tasks during a deployment | `200` | no | |
536 | 542 |
|
537 | 543 | ## Outputs
|
538 | 544 |
|
|
575 | 581 | | desired_count | The desired count | `1` | no |
|
576 | 582 | | memory | The number of MiB of memory to reserve for the container | `512` | no |
|
577 | 583 | | cpu | The number of cpu units to reserve for the container | `512` | no |
|
| 584 | +| deployment_minimum_healthy_percent | lower limit (% of desired_count) of # of running tasks during a deployment | `100` | no | |
| 585 | +| deployment_maximum_percent | upper limit (% of desired_count) of # of running tasks during a deployment | `200` | no | |
| 586 | + |
0 commit comments