Skip to content

Commit

Permalink
Update alb_zone_id of some missing regions (#137)
Browse files Browse the repository at this point in the history
* Update alb_zone_id

* Reformat code

* Add us-gov regions alb_zone_id

* Fix alb_zone_id of eu-west-3

* Auto Format

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: cloudpossebot <[email protected]>
  • Loading branch information
3 people authored Mar 1, 2021
1 parent f42cdd9 commit 8c08826
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 5 deletions.
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,36 @@ Available targets:
|------|---------|
| aws | >= 2.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| dns_hostname | cloudposse/route53-cluster-hostname/aws | 0.10.1 |
| this | cloudposse/label/null | 0.24.1 |

## Resources

| Name |
|------|
| [aws_elastic_beanstalk_environment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elastic_beanstalk_environment) |
| [aws_elb_service_account](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/elb_service_account) |
| [aws_iam_instance_profile](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_instance_profile) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |
| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) |
| [aws_iam_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) |
| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) |
| [aws_s3_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) |
| [aws_security_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) |
| [aws_ssm_activation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_activation) |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| additional\_security\_groups | List of security groups to be allowed to connect to the EC2 instances | `list(string)` | `[]` | no |
| additional\_settings | Additional Elastic Beanstalk setttings. For full list of options, see https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html | <pre>list(object({<br> namespace = string<br> name = string<br> value = string<br> }))</pre> | `[]` | no |
| additional\_tag\_map | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. | `map(string)` | `{}` | no |
| alb\_zone\_id | ALB zone id | `map(string)` | <pre>{<br> "ap-northeast-1": "Z1R25G3KIG2GBW",<br> "ap-northeast-2": "Z3JE5OI70TWKCP",<br> "ap-south-1": "Z18NTBI3Y7N9TZ",<br> "ap-southeast-1": "Z16FZ9L249IFLT",<br> "ap-southeast-2": "Z2PCDNR3VC2G1N",<br> "ca-central-1": "ZJFCZL7SSZB5I",<br> "eu-central-1": "Z1FRNW7UH4DEZJ",<br> "eu-west-1": "Z2NYPWQ7DFZAZH",<br> "eu-west-2": "Z1GKAAAUGATPF1",<br> "eu-west-3": "ZCMLWB8V5SYIT",<br> "sa-east-1": "Z10X7K2B4QSOFV",<br> "us-east-1": "Z117KPS5GTRQ2G",<br> "us-east-2": "Z14LCN19Q5QHIC",<br> "us-west-1": "Z1LQECGX5PH1X",<br> "us-west-2": "Z38NKT9BP95V3O"<br>}</pre> | no |
| alb\_zone\_id | ALB zone id | `map(string)` | <pre>{<br> "af-south-1": "Z1EI3BVKMKK4AM",<br> "ap-east-1": "ZPWYUBWRU171A",<br> "ap-northeast-1": "Z1R25G3KIG2GBW",<br> "ap-northeast-2": "Z3JE5OI70TWKCP",<br> "ap-south-1": "Z18NTBI3Y7N9TZ",<br> "ap-southeast-1": "Z16FZ9L249IFLT",<br> "ap-southeast-2": "Z2PCDNR3VC2G1N",<br> "ca-central-1": "ZJFCZL7SSZB5I",<br> "eu-central-1": "Z1FRNW7UH4DEZJ",<br> "eu-north-1": "Z23GO28BZ5AETM",<br> "eu-south-1": "Z10VDYYOA2JFKM",<br> "eu-west-1": "Z2NYPWQ7DFZAZH",<br> "eu-west-2": "Z1GKAAAUGATPF1",<br> "eu-west-3": "Z3Q77PNBQS71R4",<br> "me-south-1": "Z2BBTEKR2I36N2",<br> "sa-east-1": "Z10X7K2B4QSOFV",<br> "us-east-1": "Z117KPS5GTRQ2G",<br> "us-east-2": "Z14LCN19Q5QHIC",<br> "us-gov-east-1": "Z2NIFVYYW2VKV1",<br> "us-gov-west-1": "Z31GFT0UA1I2HV",<br> "us-west-1": "Z1LQECGX5PH1X",<br> "us-west-2": "Z38NKT9BP95V3O"<br>}</pre> | no |
| allowed\_security\_groups | List of security groups to add to the EC2 instances | `list(string)` | `[]` | no |
| ami\_id | The id of the AMI to associate with the Amazon EC2 instances | `string` | `null` | no |
| application\_port | Port application is listening on | `number` | `80` | no |
Expand Down Expand Up @@ -337,7 +359,6 @@ Available targets:
| setting | Settings specifically set for this environment |
| tier | The environment tier |
| triggers | Autoscaling triggers in use by this environment |

<!-- markdownlint-restore -->


Expand Down
25 changes: 23 additions & 2 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,36 @@
|------|---------|
| aws | >= 2.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| dns_hostname | cloudposse/route53-cluster-hostname/aws | 0.10.1 |
| this | cloudposse/label/null | 0.24.1 |

## Resources

| Name |
|------|
| [aws_elastic_beanstalk_environment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elastic_beanstalk_environment) |
| [aws_elb_service_account](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/elb_service_account) |
| [aws_iam_instance_profile](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_instance_profile) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |
| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) |
| [aws_iam_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) |
| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) |
| [aws_s3_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) |
| [aws_security_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) |
| [aws_ssm_activation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_activation) |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| additional\_security\_groups | List of security groups to be allowed to connect to the EC2 instances | `list(string)` | `[]` | no |
| additional\_settings | Additional Elastic Beanstalk setttings. For full list of options, see https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html | <pre>list(object({<br> namespace = string<br> name = string<br> value = string<br> }))</pre> | `[]` | no |
| additional\_tag\_map | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. | `map(string)` | `{}` | no |
| alb\_zone\_id | ALB zone id | `map(string)` | <pre>{<br> "ap-northeast-1": "Z1R25G3KIG2GBW",<br> "ap-northeast-2": "Z3JE5OI70TWKCP",<br> "ap-south-1": "Z18NTBI3Y7N9TZ",<br> "ap-southeast-1": "Z16FZ9L249IFLT",<br> "ap-southeast-2": "Z2PCDNR3VC2G1N",<br> "ca-central-1": "ZJFCZL7SSZB5I",<br> "eu-central-1": "Z1FRNW7UH4DEZJ",<br> "eu-west-1": "Z2NYPWQ7DFZAZH",<br> "eu-west-2": "Z1GKAAAUGATPF1",<br> "eu-west-3": "ZCMLWB8V5SYIT",<br> "sa-east-1": "Z10X7K2B4QSOFV",<br> "us-east-1": "Z117KPS5GTRQ2G",<br> "us-east-2": "Z14LCN19Q5QHIC",<br> "us-west-1": "Z1LQECGX5PH1X",<br> "us-west-2": "Z38NKT9BP95V3O"<br>}</pre> | no |
| alb\_zone\_id | ALB zone id | `map(string)` | <pre>{<br> "af-south-1": "Z1EI3BVKMKK4AM",<br> "ap-east-1": "ZPWYUBWRU171A",<br> "ap-northeast-1": "Z1R25G3KIG2GBW",<br> "ap-northeast-2": "Z3JE5OI70TWKCP",<br> "ap-south-1": "Z18NTBI3Y7N9TZ",<br> "ap-southeast-1": "Z16FZ9L249IFLT",<br> "ap-southeast-2": "Z2PCDNR3VC2G1N",<br> "ca-central-1": "ZJFCZL7SSZB5I",<br> "eu-central-1": "Z1FRNW7UH4DEZJ",<br> "eu-north-1": "Z23GO28BZ5AETM",<br> "eu-south-1": "Z10VDYYOA2JFKM",<br> "eu-west-1": "Z2NYPWQ7DFZAZH",<br> "eu-west-2": "Z1GKAAAUGATPF1",<br> "eu-west-3": "Z3Q77PNBQS71R4",<br> "me-south-1": "Z2BBTEKR2I36N2",<br> "sa-east-1": "Z10X7K2B4QSOFV",<br> "us-east-1": "Z117KPS5GTRQ2G",<br> "us-east-2": "Z14LCN19Q5QHIC",<br> "us-gov-east-1": "Z2NIFVYYW2VKV1",<br> "us-gov-west-1": "Z31GFT0UA1I2HV",<br> "us-west-1": "Z1LQECGX5PH1X",<br> "us-west-2": "Z38NKT9BP95V3O"<br>}</pre> | no |
| allowed\_security\_groups | List of security groups to add to the EC2 instances | `list(string)` | `[]` | no |
| ami\_id | The id of the AMI to associate with the Amazon EC2 instances | `string` | `null` | no |
| application\_port | Port application is listening on | `number` | `80` | no |
Expand Down Expand Up @@ -130,5 +152,4 @@
| setting | Settings specifically set for this environment |
| tier | The environment tier |
| triggers | Autoscaling triggers in use by this environment |

<!-- markdownlint-restore -->
11 changes: 10 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,16 @@ variable "alb_zone_id" {
us-east-2 = "Z14LCN19Q5QHIC"
us-west-1 = "Z1LQECGX5PH1X"
us-west-2 = "Z38NKT9BP95V3O"
eu-west-3 = "ZCMLWB8V5SYIT"
eu-west-3 = "Z3Q77PNBQS71R4"
af-south-1 = "Z1EI3BVKMKK4AM"
ap-east-1 = "ZPWYUBWRU171A"
eu-central-1 = "Z1FRNW7UH4DEZJ"
eu-south-1 = "Z10VDYYOA2JFKM"
eu-north-1 = "Z23GO28BZ5AETM"
me-south-1 = "Z2BBTEKR2I36N2"
sa-east-1 = "Z10X7K2B4QSOFV"
us-gov-west-1 = "Z31GFT0UA1I2HV"
us-gov-east-1 = "Z2NIFVYYW2VKV1"
}

description = "ALB zone id"
Expand Down

0 comments on commit 8c08826

Please sign in to comment.