> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting to AWS Direct Connect

> This help topic describes the supported Megaport connection models for AWS Direct Connect.

export const Anchor = ({name}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Anchor -';
  if (name === undefined || name === null || name === 'undefined') {
    console.error(`${errorPrefix} \`name\` must have a value — rendering an empty string instead`);
    return <></>;
  }
  const raw = typeof name === 'string' ? name : JSON.stringify(name);
  const id = raw.replace(/\s+/g, '-').replace(/[^A-Za-z0-9_-]/g, '').replace(/-+/g, '-').replace(/^-+|-+$/g, '');
  if (!id) {
    console.error(`${errorPrefix} \`name\` "${name}" sanitizes to an empty id — rendering an empty string instead`);
    return <></>;
  }
  return <a style={{
    scrollMarginTop: 'var(--scroll-mt)'
  }} id={id}></a>;
};

export const Image = ({src, alt = '', caption, width, height, shadow}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Image -';
  if (typeof src !== 'string') {
    src = String(src);
  }
  if (!src || src === 'undefined') {
    console.error(`${errorPrefix} \`src\` is required — rendering an empty string instead`);
    return <></>;
  }
  const img = <img className={['mega-image-style', shadow ? 'shadow' : ''].join(' ')} src={src} alt={alt} width={width} height={height} style={{
    display: 'block'
  }} />;
  return caption ? <figure>
      {img}
      <figcaption style={{
    textAlign: 'center',
    width
  }}>{caption}</figcaption>
    </figure> : img;
};

You can create a network connection from your Port to AWS with Virtual Cross Connects (VXCs) and AWS Direct Connect.

Megaport supports three AWS Direct Connect models:

* [Hosted Virtual Interfaces (Hosted VIFs)](#vif)

* [Hosted Connections](#hosted)

* [Direct Connect dedicated connections](#direct)

<Anchor name="vif" />

## Hosted Virtual Interfaces

Hosted VIFs can connect to public or private AWS cloud services. Each VXC (Hosted VIF) lets you manage the bandwidth and as long as the total bandwidth of the VXCs does not exceed the size of the Port, utilization of each VXC (to the VPC) will not affect the other VXCs.

Key features include:

* Connections can share bandwidth, which is managed and monitored to ensure defined network performance.

* If you connect to AWS from a Megaport Cloud Router (MCR), the Hosted VIF provides access to the routing information for automatic configuration of your MCR.

* You can change the service speed without affect to the service.

* This model does not support Transit Gateway virtual interfaces.

* AWS Direct Connect port charges are included with your Megaport order. You are informed of the billing details and shown the Megaport rates as you configure the connection.

* Maximum VXC speed of 5 Gbps. Higher speeds might be available depending on location and Port capabilities.

<Image src="/images/cloud/megaport/aws/hosted-vif.png" alt="Hosted VIF" width={700} />

<Note>
  This is the original option supported by Megaport for AWS Direct Connect.
</Note>

To get started with Hosted VIFs:

* [Configure and maintain an AWS Hosted VIF](/cloud/megaport/aws/hosted-vif)

* [Helpful references](#helpful-references)

<Anchor name="hosted" />

## Hosted Connections

A Hosted Connection can support one private, public, or transit virtual interface.

Key features include:

* Support for Transit Gateway.

* Dedicated (not shared) bandwidth with one-to-one subscription.

* You cannot change the speed after you create the connection. To change the speed, you must create and configure a new connection.

* The configuration process does not have automatic access to routing information for the MCR and you need to configure the routing manually.

* Maximum VXC speed of 25 Gbps. Higher speeds might be available depending on location and Port capabilities.

* Support for diverse AWS ports for resiliency and to avoid any single-point-of-failure.

* AWS Direct Connect port charges are billed by Amazon.

With Hosted Connections, you can aggregate connections using Transit Gateway and have a single Hosted Connection with dedicated bandwidth instead of multiple Hosted VIFs sharing the bandwidth. With this scenario, a VPC can be affected by other VPCs requiring bandwidth over the same connection.

<Image src="/images/cloud/megaport/aws/hosted-connection.png" alt="Hosted Connection" width={700} />

<Note>
  If you are not co-located in a data center that offers Hosted Connections, you can use a VXC to connect to the closest enabled location.
</Note>

To get started with Hosted Connections:

* [Configure and maintain an AWS Hosted Connection](/cloud/megaport/aws/hosted-connection)

* [Helpful references](#helpful-references)

<Anchor name="direct" />

## Direct Connect dedicated connections

A Direct Connect dedicated connection can support up to 50 public or private virtual interfaces and up to four transit virtual interfaces. The total number of VIFs cannot exceed 51 per dedicated connection.  With this option, you provision a Direct Connect port in the AWS Console and work with Megaport to set up a physical cross connect from the Direct Connect port to a Port at the same data center. Then, using a private untagged VXC, you can connect the Port to a second Port in a different data center.

<Image src="/images/cloud/megaport/aws/dedicated-connection.png" alt="Direct Connect dedicated connections" width={700} />

Key features include:

* You cannot change the port speed after you create the connection request. To change the port speed, you must create and configure a new connection.

* Support for a large number of VPCs.

* Support for Transit Gateway configurations.

* AWS port charges are billed by Amazon.

To get started with a Direct Connect dedicated connection:

* [Configure and maintain a dedicated connection](/cloud/megaport/aws/dedicated-connection)

<Anchor name="helpful-references" />

## Helpful references

To learn more about AWS Direct Connect models and features, explore these resources.

**Additional Megaport Information**

* [Megaport AWS Infopaper](https://www.megaport.com/services/amazon-web-services/)

* [AWS Virtual Gateway vs. Direct Connect Gateway vs. Transit Gateway](https://www.megaport.com/blog/aws-vgw-vs-dgw-vs-tgw/)

* [Enabling Cloud-Native VPN/Encryption Options Over Dedicated Cloud Connectivity Paths](/encryption/cloud-native-vpn-encryption)

**Amazon Documentation**

* [AWS Direct Connect Documentation](https://docs.aws.amazon.com/directconnect/index.html#lang/en_us)

* [AWS Direct Connect Limits](https://docs.aws.amazon.com/directconnect/latest/UserGuide/limits.html)

* [AWS Direct Connect models](https://aws.amazon.com/blogs/aws/new-gigabit-connectivity-options-for-amazon-direct-connect/)

* [AWS PrivateLink](https://aws.amazon.com/privatelink/)
