diff --git a/main.tf b/main.tf index f425f97..d913072 100644 --- a/main.tf +++ b/main.tf @@ -427,7 +427,7 @@ resource "aws_vpc_endpoint" "ssm_interfaces" { resource "aws_vpc_endpoint" "ssm_s3" { vpc_id = aws_vpc.vpc.id - service_name = "com.amazonaws.eu-west-2.s3" + service_name = "com.amazonaws.${data.aws_region.current.name}.s3" vpc_endpoint_type = "Gateway" route_table_ids = [ @@ -438,7 +438,7 @@ resource "aws_vpc_endpoint" "ssm_s3" { tags = merge( var.tags_common, { - Name = "${var.tags_prefix}-com.amazonaws.eu-west-2.s3" + Name = "${var.tags_prefix}-com.amazonaws.${data.aws_region.current.name}.s3" } ) } \ No newline at end of file