-
- Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
It appears that AWS released (at least in our accounts) a second endpoint type for S3 Endpoints... until now S3 Endpoints only supported Gateway, but now they support an S3 endpoint of type Interface. Because of this, the vpc module is throwing the following error:
Error: multiple VPC Endpoint Services matched; use additional constraints to reduce matches to a single VPC Endpoint Service
The data source for s3 endpoint needs to include an additional filter to ensure a single record is returned:
terraform-aws-vpc/vpc-endpoints.tf
Lines 4 to 8 in a78cee9
| data "aws_vpc_endpoint_service" "s3" { | |
| count = var.create_vpc && var.enable_s3_endpoint ? 1 : 0 | |
| service = "s3" | |
| } |
Should now include:
data "aws_vpc_endpoint_service" "s3" { count = var.create_vpc && var.enable_s3_endpoint ? 1 : 0 service = "s3" service_type = "Gateway" }tarvip, eric51893, rogersd, sebas-w, haidaraM and 15 more
Metadata
Metadata
Assignees
Labels
No labels