DEV Community

Cover image for Virtual Private Gateways association to Direct Connect Gateways in AWS
Rimpal Johal for AWS Community Builders

Posted on

3 1

Virtual Private Gateways association to Direct Connect Gateways in AWS

In this blog, I am explaining how to associate multiple virtual private gateways to single direct connect gateway in an AWS account.

Direct connect gateway gives you the option of associating multiple Virtaul Private Gateways(VGW) in an account to one direct connect gateway. When the direct connection established, it need to be consumed at AWS console either by VPG or by direct connect gateway. If you have multiple VPCs in the account and have multiple associated virtual gateways which need to be facilitated by one direct connect connection then direct connect gateway is the best option to manage this. Detailing below the steps to associate multiple VGWs to single direct connect gateway.

  1. Create a Virtual Private Gateway.

    image

    image

    image

  2. After you create the Virtual Private Gateway, it will be in the detach state, attach it or associate it with your VPC.

    image

    image

    image

    image

  3. After Virtual Gateway is attached to the VPC, create the direct connect gateway. Navigate to Direct Connect > Direct connect gateways and click on create direct connect gateways

    image

  4. Mention some name for the direct connect gateway and provide Amazon side ASN with in the given rage. This range need to define between 64512–65534

    image

    image

  5. After direct connect gateway is created in your AWS account, it will show in the available state. Click on the gateway id and click the second tab gateway associations to associate your virtual gateway to the direct connect gateway.

    image

    image

  6. Click on the associate gateway and attach the virtual private gateway which you have created earlier and associated with VPC.

    image

    image

  7. Initially the page will show the status of associating and after 3–4 minutes, the state will change to associated.

    image

As given above in the steps, you can associate multiple virtual private gateway to single direct connect gateway in an account. Please note this association can happen only with in the account and not cross-accounts.

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post