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

# Cloud Gateway

Cloud Gateway establishes a private, secure, and direct connection between your Latitude.sh servers and major cloud providers.

To connect Latitude.sh's infrastructure to your cloud provider's resources, log in to the [dashboard](https://www.latitude.sh/dashboard), select a project, then navigate to **Interconnection > Cloud Gateway** in the sidebar.

Complete the required fields to submit your request. Once submitted, the team will handle the configurations.

<img src="https://mintcdn.com/latitudesh/ZWurrjun6MJRTyC0/images/product/31.Docs25Q4.CloudGateway.png?fit=max&auto=format&n=ZWurrjun6MJRTyC0&q=85&s=a2a04222b521ce8047cee4d65c6f643e" alt="Cloud Gateway interface" width="2940" height="1450" data-path="images/product/31.Docs25Q4.CloudGateway.png" />

<Tabs>
  <Tab title="Connecting to AWS">
    <Steps>
      <Step title="Configure connection details">
        Choose the location of your Latitude.sh server from which you want to establish the connection to AWS. Optionally, select a [private network](/networking/private-networks) if one is configured.

        Enter the IP address range in CIDR format. The IP prefix is associated with your on-premises network and needs to be routable to AWS.
      </Step>

      <Step title="Set up AWS configuration">
        Select AWS as the destination cloud provider and enter the AWS region where your [Virtual Private Cloud (VPC)](https://aws.amazon.com/vpc/) or other resources are hosted. You can find this information in the top right corner of the [AWS Management Console](https://aws.amazon.com/console/).

        Enter your 12-digit AWS account ID from the **My Account** section in the [AWS Management Console](https://aws.amazon.com/console/).

        Enter your Amazon Autonomous System Number (ASN), found in the [AWS Direct Connect Console](https://console.aws.amazon.com/directconnect/home) under Virtual Interfaces.

        If you don't have a virtual interface, create one through the Direct Connect setup process. See the [AWS Direct Connect User Guide](https://docs.aws.amazon.com/directconnect/latest/UserGuide/accepthostedvirtualinterface.html) for more information.
      </Step>

      <Step title="Complete the request">
        Choose the desired port speed for your connection from the available options. Once all fields are completed, click **Request**.
      </Step>
    </Steps>

    **Canceling the connection to AWS**

    To cancel the connection between Latitude.sh and AWS, follow these steps:

    <Steps>
      <Step title="Cancel AWS connection">
        Log in to your AWS account and remove the connection associated with Cloud Gateway. Next, go to **Support** in the [dashboard](https://www.latitude.sh/dashboard) and create a **New ticket** to request service cancellation.

        The connection will be terminated once both steps are completed and the team processes your request.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Connecting to GCP">
    <Steps>
      <Step>Choose the location of your Latitude.sh server from which you want to establish the connection to GCP.</Step>

      <Step>
        Select a [private network](/networking/private-networks) if one is configured
        (optional).
      </Step>

      <Step>
        Enter the IP address range in CIDR format. The IP prefix is associated with
        your on-premises network and needs to be routable to GCP.
      </Step>

      <Step>Select GCP as the destination cloud provider.</Step>

      <Step>Enter the GCP region where your resources are hosted.</Step>

      <Step>
        Log in to your [Google Cloud Console](https://console.cloud.google.com/) and
        create a pairing key.
      </Step>
    </Steps>

    **Creating a pairing key**

    <Steps>
      <Step>From the main menu in the Google Cloud Console, select **Hybrid Connectivity > Interconnect**.</Step>

      <img src="https://mintcdn.com/latitudesh/ELzsuRnxGwFWx5KO/images/product/gcp-project1.png?fit=max&auto=format&n=ELzsuRnxGwFWx5KO&q=85&s=74d3b5149c87508b72f606a757dde478" alt="GCP-project1" width="1353" height="1159" data-path="images/product/gcp-project1.png" />

      <Step>Click **Get Started**.</Step>

      <Step>Select Partner Interconnect and click **Continue**.</Step>

      <img src="https://mintcdn.com/latitudesh/ELzsuRnxGwFWx5KO/images/product/gcp-partner-interconnect.png?fit=max&auto=format&n=ELzsuRnxGwFWx5KO&q=85&s=aa8dc2b1b8578dc2f159e1defdf867c6" alt="Partner-interconnect" width="1353" height="1193" data-path="images/product/gcp-partner-interconnect.png" />

      <Step>Click **I already have a service provider**.</Step>

      <img src="https://mintcdn.com/latitudesh/ELzsuRnxGwFWx5KO/images/product/gcp-service-provider.png?fit=max&auto=format&n=ELzsuRnxGwFWx5KO&q=85&s=33b55453a6fd4f43e96b3c6b6e5ae751" alt="Already-have-a-sp" width="1353" height="627" data-path="images/product/gcp-service-provider.png" />

      <Step>Configure your attachment.</Step>

      <img src="https://mintcdn.com/latitudesh/ELzsuRnxGwFWx5KO/images/product/gcp-vlan-attachment.png?fit=max&auto=format&n=ELzsuRnxGwFWx5KO&q=85&s=4d64f261cbe1fc3dc12938c95bebdd5b" alt="vlan-attachment" width="1353" height="2384" data-path="images/product/gcp-vlan-attachment.png" />

      <Step>Provide the following details:</Step>

      * **Redundancy**: Review the options for redundancy and select. You can create redundant Attachments or a single Attachment.

      * **Network**: Select the VPC network you want your VPC to connect to.

      * **Region**: Select the region where your attachment will connect.

      * **Cloud Router**: A Cloud Router to associate with this attachment. You can only choose a Cloud Router in the VPC network and region that you selected with an ASN of 16550. If you don't have an existing Cloud Router, create one with an ASN of 16550. For redundancy, each VLAN attachment must be associated with a unique Cloud Router. Google automatically adds an interface and a BGP peer on the Cloud Router.

      * **VLAN attachment name**: Lowercase letters only.

      * **Description** (optional).

      * **Maximum Transmission Unit (MTU)**: To use the 1500-byte MTU, the VPC network using the attachment must have an MTU set to 1500. In addition, the on-premises VMs and routers must have an MTU set to 1500. If your network has the default MTU of 1460, leave the field at 1440.

      <Step> Click **Create**.</Step>

      <Step>Copy the pairing key and click **OK**.</Step>

      <img src="https://mintcdn.com/latitudesh/ELzsuRnxGwFWx5KO/images/product/gcp-pairing-key.png?fit=max&auto=format&n=ELzsuRnxGwFWx5KO&q=85&s=3c2fca3499bad40c9fb879e1fca242ac" alt="pairing-key" width="1353" height="825" data-path="images/product/gcp-pairing-key.png" />

      <Step>
        Go back to the Cloud Gateway form and paste the copied pairing key into the
        **Pairing Key** field.
      </Step>

      <Step>
        Choose the desired port speed for your connection from the available options.
      </Step>

      <Step>Once all fields are completed, click **Request**.</Step>
    </Steps>
  </Tab>

  <Tab title="Connecting to Azure">
    <Steps>
      <Step>Choose the location of your Latitude.sh server from which you want to establish the connection to Azure.</Step>

      <Step>
        Select a [private network](/networking/private-networks) if one is configured
        (optional).
      </Step>

      <Step>
        Enter the IP address range in CIDR format. The IP prefix is associated with
        your on-premises network and needs to be routable to Azure.
      </Step>

      <Step>Select Azure as the destination cloud provider.</Step>

      <Step>
        Enter the [Azure
        region](https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/change-organization-location?view=azure-devops)
        where your resources are hosted.
      </Step>

      <Step>
        Enter the service key from your [ExpressRoute
        circuit](https://learn.microsoft.com/en-us/azure/expressroute/expressroute-howto-circuit-portal-resource-manager).
        To generate one, create an ExpressRoute connection in the Azure Portal and
        deploy the circuit.
      </Step>

      <Step>
        Choose the desired port speed for your connection from the available options.
      </Step>

      <Step>Once all fields are completed, click **Request**.</Step>
    </Steps>
  </Tab>
</Tabs>
