Skip to content

Commit b94f8ce

Browse files
committed
Support for cross region VPC endpoints
1 parent 573f574 commit b94f8ce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/vpc-endpoints/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ data "aws_vpc_endpoint_service" "this" {
1313

1414
service = try(each.value.service, null)
1515
service_name = try(each.value.service_name, null)
16+
service_regions = try([each.value.service_region], null)
1617

1718
filter {
1819
name = "service-type"
@@ -25,6 +26,7 @@ resource "aws_vpc_endpoint" "this" {
2526

2627
vpc_id = var.vpc_id
2728
service_name = try(each.value.service_endpoint, data.aws_vpc_endpoint_service.this[each.key].service_name)
29+
service_region = try(each.value.service_region, null)
2830
vpc_endpoint_type = try(each.value.service_type, "Interface")
2931
auto_accept = try(each.value.auto_accept, null)
3032

modules/vpc-endpoints/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.46"
7+
version = ">= 5.83"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)