More Info:

Unused Amazon Virtual Private Gateways should be removed in order to adhere to best practices and to avoid reaching the service limit.

Risk Level

Low

Address

Operational Maturity, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the issue of Unused Virtual Private Gateways in AWS, you can follow these steps using the AWS Management Console:

  1. Login to AWS Console: Navigate to the AWS Management Console at https://aws.amazon.com/ and login with your credentials.

  2. Access VPC Dashboard: Go to the VPC dashboard by selecting the “Services” dropdown menu at the top left corner, then selecting “VPC” under the Networking & Content Delivery section.

  3. Identify Unused Virtual Private Gateways:

    • In the VPC dashboard, click on “Virtual Private Gateways” on the left-hand side menu.
    • Review the list of Virtual Private Gateways to identify any that are not associated with any VPCs or are no longer in use.
  4. Dissociate and Delete Unused Virtual Private Gateways:

    • Select the unused Virtual Private Gateway that you want to remove.
    • Click on the “Actions” dropdown menu and choose “Detach from VPC” to dissociate the Virtual Private Gateway from the VPC.
    • Once detached, select the Virtual Private Gateway again and click on the “Actions” dropdown menu, then choose “Delete Virtual Private Gateway” to remove it completely.
  5. Confirm Deletion:

    • A confirmation dialog will appear asking you to confirm the deletion of the Virtual Private Gateway. Confirm the action to proceed with the deletion.
  6. Verify Removal:

    • After deleting the Virtual Private Gateway, verify that it has been successfully removed from the list of Virtual Private Gateways in the VPC dashboard.

By following these steps, you can remediate the issue of Unused Virtual Private Gateways in AWS by identifying and removing any Virtual Private Gateways that are no longer in use.

Additional Reading: