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

# Location

> Available geographical locations across AWS, GCP, Azure, and OCI, plus BYOK locations on your own clusters, that can be enabled or disabled for GVC workload deployment.

## Overview

Locations show the available geographical locations for each of the following cloud providers:

* Amazon Web Services (AWS)
* Google Cloud Platform (GCP)
* Microsoft Azure
* Oracle Cloud Infrastructure (OCI)

Locations are scoped to an [org](https://docs.controlplane.com/reference/org.md), and an org administrator enables or disables the ones a [GVC](https://docs.controlplane.com/reference/gvc.md) may select.

A new org is seeded with a working subset of the built-in catalog, and every location present in an org starts enabled. Disabling a location removes the [workloads](https://docs.controlplane.com/concepts/workload.md) running in it; enabling one provisions every workload whose GVC selects it.

> [!NOTE]
>
> If a company is restricted for legal or compliance reasons to only use certain cloud providers, disabling those providers will ensure that workloads will not be deployed to those providers.

## Locations

Control Plane can enable any cloud provider location.

If a location is not shown, email [support@controlplane.com](mailto:support@controlplane.com) with the provider and location and it will be provisioned.

## BYOK Locations

[CPLN BYOK](https://docs.controlplane.com/byok/overview.md) adds locations backed by Kubernetes clusters you run, in your own cloud accounts or on bare metal servers and on-premises VMs. A BYOK location has the provider `byok`, and you create it, install it into each cluster that serves it, and delete it yourself.

[Deploy a Workload to Your Own Hardware](https://docs.controlplane.com/guides/deploy-to-your-own-hardware.md) creates one and connects either an existing cluster or Linux servers to it.

## Built-in Tags

Each location has the following built-in [tags](https://docs.controlplane.com/core/misc.md#tags):

* `cpln/city=VALUE`
* `cpln/state=VALUE`
* `cpln/country=VALUE`
* `cpln/continent=VALUE`

These are set from the location's geographic coordinates, so a [GVC](https://docs.controlplane.com/reference/gvc.md) can select locations with a [query](https://docs.controlplane.com/core/query.md) on them instead of naming each one.

## Egress IP Addresses

Outbound (egress) traffic from a workload leaves through the NAT gateway IPs of the location it runs in. Each location publishes these addresses in its `ipRanges` field. A location usually has a small set of them, and every workload in that location shares them.

These IPs are very stable. They change rarely, and Control Plane aims to give advance notice when they do.

> [!NOTE]
>
> An [IP Set](https://docs.controlplane.com/reference/ipset.md) does not change a workload's egress IP. IP Sets apply to inbound traffic only.

### View a Location's Egress IPs

> [tab] Console UI
>
> Navigate to the `Locations` list page from the main navigation bar.
> Select a location to view the IP ranges listed on the `Info` page.

> [tab] CLI
>
> Use the command below to view the IP ranges of all locations.
>
> ```bash YAML theme={null}
> cpln location get -o yaml
> ```
>
> ```bash JSON theme={null}
> cpln location get -o json
> ```
>
> To view a single location, name it:
>
> ```bash YAML theme={null}
> cpln location get aws-us-west-2 -o yaml
> ```
>
> ```bash JSON theme={null}
> cpln location get aws-us-west-2 -o json
> ```
>
> The addresses are listed under `status.ipRanges`. See the [CLI location command reference](https://docs.controlplane.com/cli-reference/commands/location.md) for more details.

> [tab] API
>
> The location list endpoint and location-specific endpoint return the location object with the `status.ipRanges` property.
>
> See the [Get All Locations API endpoint](https://docs.controlplane.com/api-reference/location/get-all-locations.md) for details.

### Allowlist Outbound Traffic

When an external service accepts traffic only from known IPs, use one of these approaches, from simplest to most involved:

1. **Allowlist the location's egress IPs.** This works for most cases.
2. **Run the GVC in a single location.** The external service then only needs that one location's IPs. See [GVC locations](https://docs.controlplane.com/reference/gvc.md).
3. **Automate the allowlist.** Read the location's `ipRanges` from the API on a schedule and update the external service's allowlist if they change.
4. **Use a location backed by your own cluster.** For a single fixed egress IP, run workloads on a [CPLN BYOK](https://docs.controlplane.com/byok/overview.md) or [Managed Kubernetes](https://docs.controlplane.com/mk8s/overview.md) cluster in your own cloud account and assign a static IP to that cluster's NAT gateway. This adds the cost of running a dedicated cluster, so prefer the location's published IPs when they meet your needs.

## Permissions

The permissions below are used to define [policies](https://docs.controlplane.com/reference/policy.md) together with one or more of the four [principal types](https://docs.controlplane.com/concepts/access-control.md):

| Permission | Description | Implies |
| :- | :- | :- |
| create | Create new locations | |
| delete | Delete BYOK locations | |
| edit | Modify existing locations | view |
| manage | Full access | create, delete, edit, use, view |
| use | Use this location for workload placement | view |
| view | Read-only access | |

## Access Report

Displays the permissions granted to principals for the location. See [Access Report](https://docs.controlplane.com/concepts/access-control.md#access-report) for what each entry shows, how to open it from the Console, CLI, or API, and how groups, query targets, and implied permissions appear in it.

## CLI

To view the CLI documentation for locations, see the [Location CLI reference](https://docs.controlplane.com/cli-reference/commands/location.md).
