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

When trying to migrate KMS endpoint to the latest version, got "multiple EC2 VPC Endpoint Services matched; use additional constraints to reduce matches to a single EC2 VPC Endpoint Service" #1168

Open
allan-simon opened this issue Feb 5, 2025 · 0 comments

Comments

@allan-simon
Copy link
Contributor

allan-simon commented Feb 5, 2025

Description

  • [ x] ✋ I have searched the open/closed issues and my issue is not listed.

I've read #582

Versions

  • Module version [Required]:

  • Terraform version:
    1.10.5

  • Provider version(s):

  • provider registry.terraform.io/cloudflare/cloudflare v4.51.0
  • provider registry.terraform.io/hashicorp/archive v2.7.0
  • provider registry.terraform.io/hashicorp/aws v5.85.0
  • provider registry.terraform.io/hashicorp/template v2.2.0

Reproduction Code [Required]

module "endpoints" {
  source = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints"


  # VPC endpoint for KMS
  endpoints = {
    kms = {
      private_dns_enabled = true
      security_group_ids  = [aws_security_group.https_only_from_anywhere.id]
      service_type        = "Interface"
    }
  }

Steps to reproduce the behavior:

- rm -rf .terraform
- terraform version
- terraform init -reconfigure -upgrade
- terraform providers -version
 - terraform workspace new staging || true
 - terraform workspace select staging
 - terraform plan -out "planfile"

Expected behavior

Actual behavior

Terminal Output Screenshot(s)

╷
│ Error: multiple EC2 VPC Endpoint Services matched; use additional constraints to reduce matches to a single EC2 VPC Endpoint Service
│ 
│   with module.endpoints.data.aws_vpc_endpoint_service.this["kms"],
│   on .terraform/modules/endpoints/modules/vpc-endpoints/main.tf line 11, in data "aws_vpc_endpoint_service" "this":
│   11: data "aws_vpc_endpoint_service" "this" {
│ 
╵

Additional context

I've seen the pinned issue, and as you can see i'm at the latest version

@allan-simon allan-simon changed the title When trying to migrate KMS endpoint to the latest version When trying to migrate KMS endpoint to the latest version, got "multiple EC2 VPC Endpoint Services matched; use additional constraints to reduce matches to a single EC2 VPC Endpoint Service" Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant