EC2 InvalidVpcEndpointServicePermissionID.NotFound error encountered when attempting to manage VPC endpoint service permissions.

The specified VPC endpoint service permission 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 secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. One of the features of EC2 is the ability to create VPC (Virtual Private Cloud) endpoint services, which allow you to privately connect your VPC to supported AWS services and VPC endpoint services powered by AWS PrivateLink.

Identifying the Symptom: InvalidVpcEndpointServicePermissionID.NotFound

When working with VPC endpoint services, you might encounter the error code InvalidVpcEndpointServicePermissionID.NotFound. This error typically occurs when you attempt to manage VPC endpoint service permissions using an incorrect or non-existent permission ID.

What You Might Observe

Developers may notice this error when trying to view, modify, or delete permissions associated with a VPC endpoint service. The error message indicates that the specified permission ID cannot be found.

Explaining the Issue: InvalidVpcEndpointServicePermissionID.NotFound

The InvalidVpcEndpointServicePermissionID.NotFound error suggests that the permission ID you are using does not match any existing permissions for the VPC endpoint service. This could be due to a typo, an incorrect ID, or the permission having been deleted.

Common Causes

  • Typographical errors in the permission ID.
  • Using an outdated or incorrect permission ID.
  • The permission has been deleted or never existed.

Steps to Resolve the InvalidVpcEndpointServicePermissionID.NotFound Error

To resolve this issue, follow these steps:

Step 1: Verify the Permission ID

Ensure that the permission ID you are using is correct. Double-check for any typographical errors. You can list your current permissions to verify the correct ID:

aws ec2 describe-vpc-endpoint-service-permissions --service-id

This command will list all permissions associated with your VPC endpoint service. Confirm that the permission ID you are using is present in this list.

Step 2: Check for Deleted Permissions

If the permission ID is not found, it might have been deleted. Review your AWS CloudTrail logs to see if there was an action that deleted the permission. For more information on CloudTrail, visit the AWS CloudTrail documentation.

Step 3: Recreate the Permission

If the permission was deleted, you will need to recreate it. Use the following command to create a new permission:

aws ec2 create-vpc-endpoint-service-permission --service-id --principal

Replace <your-service-id> and <principal-arn> with your specific service ID and principal ARN.

Conclusion

By following these steps, you should be able to resolve the InvalidVpcEndpointServicePermissionID.NotFound error. Always ensure that you are using the correct permission IDs and regularly audit your permissions to prevent similar issues in the future. For more detailed guidance, refer to the AWS VPC Endpoint Services documentation.

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