Skip to content

Commit

Permalink
Merge pull request #32840 from hashicorp/f-il-central-1
Browse files Browse the repository at this point in the history
Support new AWS Israel (Tel Aviv) Region `il-central-1` in data sources
  • Loading branch information
ewbankkit authored Aug 3, 2023
2 parents 2c2d532 + 9befefa commit c4ea5a2
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .changelog/32840.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```release-note:enhancement
data-source/aws_cloudtrail_service_account: Add service account ID for `il-central-1` AWS Region
```

```release-note:enhancement
data-source/aws_elb_hosted_zone_id: Add hosted zone ID for `il-central-1` AWS Region
```

```release-note:enhancement
data-source/aws_lb_hosted_zone_id: Add hosted zone IDs for `il-central-1` AWS Region
```

```release-note:enhancement
data-source/aws_s3_bucket: Add hosted zone ID for `il-central-1` AWS Region
```
4 changes: 1 addition & 3 deletions docs/add-a-new-region.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ See the [Changelog Process](changelog-process.md) document for example changelog
Some data sources include static values specific to regions that are not available via a standard AWS API call. These will need to be manually updated. AWS employees can code search previous region values to find new region values in internal packages like RIPStaticConfig if they are not documented yet.

- Check [Elastic Load Balancing endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/elb.html#elb_region) and add Route53 Hosted Zone ID if available to [`internal/service/elb/hosted_zone_id_data_source.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/elb/hosted_zone_id_data_source.go) and [`internal/service/elbv2/hosted_zone_id_data_source.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/elbv2/hosted_zone_id_data_source.go)
- Check [Amazon Simple Storage Service endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) and add Route53 Hosted Zone ID if available to [`internal/service/s3/hosted_zones.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/s3/hosted_zones.go)
- Check [Amazon Simple Storage Service endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_endpoints) and add Route53 Hosted Zone ID if available to [`internal/service/s3/hosted_zones.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/s3/hosted_zones.go)
- Check [CloudTrail Supported Regions docs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-supported-regions.html#cloudtrail-supported-regions) and add AWS Account ID if available to [`internal/service/cloudtrail/service_account_data_source.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/cloudtrail/service_account_data_source.go)
- ~~Check [Elastic Load Balancing Access Logs docs](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html#attach-bucket-policy) and add Elastic Load Balancing Account ID if available to [`internal/service/elb/service_account_data_source.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/elb/service_account_data_source.go)~~
- ~~Check [Redshift Database Audit Logging docs](https://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html#db-auditing-bucket-permissions) and add AWS Account ID if available to [`internal/service/redshift/service_account_data_source.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/redshift/service_account_data_source.go)~~
- Check [AWS Elastic Beanstalk endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html) and add Route53 Hosted Zone ID if available to [`internal/service/elasticbeanstalk/hosted_zone_data_source.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/elasticbeanstalk/hosted_zone_data_source.go)
- Check [SageMaker docs](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html) and add AWS Account IDs if available to [`internal/service/sagemaker/prebuilt_ecr_image_data_source.go`](https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service/sagemaker/prebuilt_ecr_image_data_source.go)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8
github.com/aws/aws-sdk-go v1.44.313
github.com/aws/aws-sdk-go v1.44.315
github.com/aws/aws-sdk-go-v2 v1.20.0
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.7
github.com/aws/aws-sdk-go-v2/service/accessanalyzer v1.20.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to=
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/aws/aws-sdk-go v1.44.313 h1:u6EuNQqgAmi09GEZ5g/XGHLF0XV31WcdU5rnHyIBHBc=
github.com/aws/aws-sdk-go v1.44.313/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.315 h1:kYTC+Y/bJ9M7QQRvkI/LN5OWvhkIOL/YuFFRhS5QAOo=
github.com/aws/aws-sdk-go v1.44.315/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v1.19.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw=
github.com/aws/aws-sdk-go-v2 v1.20.0 h1:INUDpYLt4oiPOJl0XwZDK2OVAVf0Rzo+MGVTv9f+gy8=
github.com/aws/aws-sdk-go-v2 v1.20.0/go.mod h1:uWOr0m0jDsiWw8nnXiqZ+YG6LdvAlGYDLLf2NmHZoy4=
Expand Down
1 change: 1 addition & 0 deletions internal/service/cloudtrail/service_account_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var ServiceAccountPerRegionMap = map[string]string{
endpoints.EuWest1RegionID: "859597730677",
endpoints.EuWest2RegionID: "282025262664",
endpoints.EuWest3RegionID: "262312530599",
endpoints.IlCentral1RegionID: "683224464357",
endpoints.MeCentral1RegionID: "585772288577",
endpoints.MeSouth1RegionID: "034638983726",
endpoints.SaEast1RegionID: "814480443879",
Expand Down
1 change: 1 addition & 0 deletions internal/service/elb/hosted_zone_id_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var HostedZoneIdPerRegionMap = map[string]string{
endpoints.EuWest1RegionID: "Z32O12XQLNTSW2",
endpoints.EuWest2RegionID: "ZHURV8PSTC4K8",
endpoints.EuWest3RegionID: "Z3Q77PNBQS71R4",
endpoints.IlCentral1RegionID: "Z09170902867EHPV2DABU",
endpoints.MeCentral1RegionID: "Z08230872XQRWHG2XF6I",
endpoints.MeSouth1RegionID: "ZS929ML54UICD",
endpoints.SaEast1RegionID: "Z2P70J7HTTTPLU",
Expand Down
2 changes: 2 additions & 0 deletions internal/service/elbv2/hosted_zone_id_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var HostedZoneIdPerRegionALBMap = map[string]string{
endpoints.EuWest1RegionID: "Z32O12XQLNTSW2",
endpoints.EuWest2RegionID: "ZHURV8PSTC4K8",
endpoints.EuWest3RegionID: "Z3Q77PNBQS71R4",
endpoints.IlCentral1RegionID: "Z09170902867EHPV2DABU",
endpoints.MeCentral1RegionID: "Z08230872XQRWHG2XF6I",
endpoints.MeSouth1RegionID: "ZS929ML54UICD",
endpoints.SaEast1RegionID: "Z2P70J7HTTTPLU",
Expand Down Expand Up @@ -77,6 +78,7 @@ var HostedZoneIdPerRegionNLBMap = map[string]string{
endpoints.EuWest1RegionID: "Z2IFOLAFXWLO4F",
endpoints.EuWest2RegionID: "ZD4D7Y8KGAS4G",
endpoints.EuWest3RegionID: "Z1CMS0P5QUZ6D5",
endpoints.IlCentral1RegionID: "Z0313266YDI6ZRHTGQY4",
endpoints.MeCentral1RegionID: "Z00282643NTTLPANJJG2P",
endpoints.MeSouth1RegionID: "Z3QSRYVP46NYYV",
endpoints.SaEast1RegionID: "ZTK26PT1VY4CU",
Expand Down
1 change: 1 addition & 0 deletions internal/service/s3/hosted_zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var hostedZoneIDsMap = map[string]string{
endpoints.EuWest1RegionID: "Z1BKCTXD74EZPE",
endpoints.EuWest2RegionID: "Z3GKZC51ZF0DB4",
endpoints.EuWest3RegionID: "Z3R1K369G5AVDG",
endpoints.IlCentral1RegionID: "Z09640613K4A3MN55U7GU",
endpoints.MeCentral1RegionID: "Z06143092I8HRXZRUZROF",
endpoints.MeSouth1RegionID: "Z1MPMWCPA7YB62",
endpoints.SaEast1RegionID: "Z7KQH4QJS55SO",
Expand Down

0 comments on commit c4ea5a2

Please sign in to comment.