Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for "Error: multiple VPC Endpoint Services matched" #582

Closed
antonbabenko opened this issue Feb 3, 2021 · 0 comments · Fixed by #635
Closed

Solution for "Error: multiple VPC Endpoint Services matched" #582

antonbabenko opened this issue Feb 3, 2021 · 0 comments · Fixed by #635

Comments

@antonbabenko
Copy link
Member

antonbabenko commented Feb 3, 2021

If you have been using this VPC module and started from 2.2.2021 started seeing the error: Error: multiple VPC Endpoint Services matched; use additional constraints to reduce matches to a single VPC Endpoint Service, here are the available solutions depending on the versions you use:

Terraform 0.12, 0.13, 0.14:

  1. Upgrade Terraform AWS provider to be 3.10.0 (see changelog for the release) or newer:
terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = ">= 3.10"
    }
  }
}
  1. Upgrade version of the module to be 2.70.0 (or newer):
module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "2.70.0"

  # ...
}
  1. Alternatively, if you can't upgrade Terraform AWS provider as described in the first point, you can use this module version 2.69.0:
module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "2.69.0"

  # ...
}

Terraform 0.11

You can upgrade your configuration to use v1.73.0 to get the specified issue fixed on Terraform 0.11 (commit):

module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "1.73.0"

  # ...
}

Notes

If you want to manage the VPC endpoint for S3 outside of this module (when using Terraform 0.11, for eg), you can set enable_s3_endpoint = false and create resources aws_vpc_endpoint externally.

References:

#573

hashicorp/terraform-provider-aws#17417

@terraform-aws-modules terraform-aws-modules locked and limited conversation to collaborators Feb 3, 2021
@antonbabenko antonbabenko pinned this issue Feb 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant