You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# AWS service endpoint (to use CLI internally) for EC2resource"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
The text was updated successfully, but these errors were encountered:
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!
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 Configuration Files
Debug Output
Crash Output
Expected Behavior
Actual Behavior
Steps to Reproduce
Important Factoids
S3 and DynamoDB endpoints are
Gateway
types, but ec2, servicecatalog, ssm, etc. types areInterface
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
The text was updated successfully, but these errors were encountered: