Skip to content

AWS S3 Endpoints now support Interface type #571

@eriepasquare

Description

@eriepasquare

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:

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" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions