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

aws_vpc_endpoint type mismatch for ec2 service_name #2697

Closed
hashibot opened this issue Dec 18, 2017 · 3 comments
Closed

aws_vpc_endpoint type mismatch for ec2 service_name #2697

hashibot opened this issue Dec 18, 2017 · 3 comments

Comments

@hashibot
Copy link

This issue was originally opened by @opsforge as hashicorp/terraform#16941. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

Terraform v0.11.1
+ provider.aws v1.5.0
+ provider.template v1.0.0

Terraform Configuration Files

# AWS service endpoint (to use CLI internally) for EC2
resource "aws_vpc_endpoint" "internal-ec2" {
  vpc_id          = "${aws_vpc.ps-eu.id}"
  service_name    = "com.amazonaws.eu-west-2.ec2"
  route_table_ids = ["${aws_vpc.ps-eu.main_route_table_id}"]
}

Debug Output

Crash Output

Error: Error applying plan:

1 error(s) occurred:

* aws_vpc_endpoint.internal-ec2: 1 error(s) occurred:

* aws_vpc_endpoint.internal-ec2: Error creating VPC Endpoint: InvalidParameter: Endpoint type (Gateway) does not match service type (Interface).
        status code: 400, request id: adca118c-c4bd-4814-92fc-c0bc3c2af51e

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Expected Behavior

successful run

Actual Behavior

type mismatch

Steps to Reproduce

Important Factoids

S3 and DynamoDB endpoints are Gateway types, but ec2, servicecatalog, ssm, etc. types are Interface types. It's likely that the class expects all input to be a gateway, however that's not the case anymore (instead of a gateway it should be creating an interface for the ec2 service_name)

References

N/A

@ewbankkit
Copy link
Contributor

Duplicates #2695.

@jen20
Copy link
Contributor

jen20 commented Dec 29, 2017

Hi @opsforge! As @ewbankkit says, this is duplicated in #2697, so we'll keep discussion there for now. It looks like there is a fix waiting review. Thanks for opening an issue!

@jen20 jen20 closed this as completed Dec 29, 2017
@ghost
Copy link

ghost commented Apr 8, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants