EC2 InvalidVpcEndpointServiceID.NotFound error encountered when trying to use a VPC endpoint service.

The specified VPC endpoint service ID does not exist or is incorrect.

Understanding Amazon EC2 and VPC Endpoint Services

Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. A VPC (Virtual Private Cloud) endpoint allows you to privately connect your VPC to supported AWS services and VPC endpoint services powered by AWS PrivateLink without requiring an internet gateway, NAT device, VPN connection, or AWS Direct Connect connection.

Identifying the Symptom

When working with VPC endpoint services, you might encounter the error InvalidVpcEndpointServiceID.NotFound. This error typically appears when you attempt to create or manage a VPC endpoint and the specified service ID is not found.

Common Error Message

The error message usually looks like this:

InvalidVpcEndpointServiceID.NotFound: The specified VPC endpoint service ID does not exist.

Exploring the Issue

The InvalidVpcEndpointServiceID.NotFound error indicates that the VPC endpoint service ID you provided does not match any existing service. This could be due to a typo, an incorrect ID, or the service being deleted or not yet created.

Possible Causes

  • The VPC endpoint service ID is incorrect or mistyped.
  • The service has been deleted or is not yet available.
  • There might be a delay in the service availability.

Steps to Resolve the Issue

To resolve the InvalidVpcEndpointServiceID.NotFound error, follow these steps:

1. Verify the VPC Endpoint Service ID

Ensure that the service ID you are using is correct. You can list your VPC endpoint services using the AWS CLI:

aws ec2 describe-vpc-endpoint-services

Check the output to confirm the service ID is correct.

2. Check for Service Deletion

If the service ID was previously valid, verify whether the service has been deleted. You can check the AWS Management Console or use the AWS CLI to list existing services.

3. Confirm Service Availability

Sometimes, there might be a delay in the availability of newly created services. Wait for a few minutes and try again.

4. Correct the Service ID

If you find that the service ID was incorrect, update your configuration or script with the correct ID.

Additional Resources

For more information, you can refer to the following resources:

Never debug

EC2

manually again

Let Dr. Droid create custom investigation plans for your infrastructure.

Book Demo
Automate Debugging for
EC2
See how Dr. Droid creates investigation plans for your infrastructure.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid