EC2 InvalidVpcPeeringConnectionID.NotFound error when attempting to describe or modify a VPC peering connection.

The specified VPC peering connection ID does not exist or is incorrect.

Understanding Amazon EC2 and VPC Peering

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. One of the features of EC2 is the ability to create Virtual Private Clouds (VPCs), which are isolated networks that can be connected to each other using VPC peering connections.

Identifying the InvalidVpcPeeringConnectionID.NotFound Error

When working with VPC peering connections, you might encounter the InvalidVpcPeeringConnectionID.NotFound error. This error typically occurs when you attempt to describe or modify a VPC peering connection using an ID that does not exist or is incorrect.

Symptoms of the Error

The primary symptom of this issue is receiving an error message stating that the specified VPC peering connection ID cannot be found. This can happen during operations such as describing, accepting, or rejecting a VPC peering connection.

Explaining the InvalidVpcPeeringConnectionID.NotFound Issue

The InvalidVpcPeeringConnectionID.NotFound error indicates that the VPC peering connection ID you are using is not recognized by the system. This could be due to a typographical error, or the peering connection may have been deleted or never existed.

Common Causes

  • Incorrect VPC peering connection ID entered.
  • The VPC peering connection has been deleted.
  • Attempting to access a peering connection in a different AWS region.

Steps to Resolve the InvalidVpcPeeringConnectionID.NotFound Error

To resolve this error, follow these steps:

Step 1: Verify the VPC Peering Connection ID

Ensure that the VPC peering connection ID you are using is correct. You can list all VPC peering connections in your account to verify the ID:

aws ec2 describe-vpc-peering-connections

Check the output for the correct ID.

Step 2: Check for Deletion

If the ID is correct, verify whether the VPC peering connection has been deleted. Deleted connections will not appear in the list of active connections.

Step 3: Verify AWS Region

Ensure that you are operating in the correct AWS region. VPC peering connections are region-specific, and using the wrong region can result in this error.

Additional Resources

For more information on VPC peering connections, refer to the AWS VPC Peering Documentation. If you need further assistance, consider reaching out to AWS Support.

Master

EC2

in Minutes — Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the whitepaper on your email!
Oops! Something went wrong while submitting the form.

EC2

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the whitepaper on your email!
Oops! Something went wrong while submitting the form.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid