I see that a new argument service_regions support for vpc_endpoint_service resource was released in 5.83.0 provider version. Terraform Registry , PR d/vpc_endpoint_service: support cross-region endpoint services by jscaltreto · Pull Request #40795 · hashicorp/terraform-provider-aws · GitHub
However when trying to use it I get a validation error
│ Error: Unsupported argument
│
│ on modules/private-link/main.tf line 202, in resource "aws_vpc_endpoint_service" "vpc_endpoint_service":
│ 202: service_regions = ["eu-west-1"]
│
│ An argument named "service_regions" is not expected here.
Code
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.83.0"
configuration_aliases = [
aws
]
}
}
}
resource "aws_vpc_endpoint_service" "vpc_endpoint_service" {
acceptance_required = false
network_load_balancer_arns = [aws_lb.nlb[0].arn]
allowed_principals = lookup(local.allowed_principals, var.environment, [])
private_dns_name = local.private_dns_name
service_regions = ["eu-west-1"]
tags = {
Name = "${var.region_short_code}.private.${var.api_domain}"
}
}
Am I doing anything wrong? Or it’s indeed some provider bug?