Before you perform operations in Telecom Network Automation, you must set up a
Google Cloud project. To set up a project, complete the following steps.

## Before you begin

Before continuing, ensure you have the following:

- The latest version of the `gcloud` command line interface
  (CLI) tool. Do either of the following:

  - For full installation instructions, see [Install the gcloud CLI](https://docs.cloud.google.com/sdk/docs/install#linux).
  - Update your existing version using the following command:

    ```bash
    gcloud components update
    ```
- Confirm you have version 1.25.8 of the `kubectl` CLI.

  > [!NOTE]
  > **Note:** Ensure you don't have the default `kubectl` version 1.26 or greater, as this version might not work with GDC clusters.

- Have one or more GDC racks at target locations.

  - The software must run version 1.5.0. For more information, see [Installation requirements](https://docs.cloud.google.com/distributed-cloud/edge/latest/docs/requirements).

## Set up your Google Cloud project

Before you provision Telecom Network Automation, you must set up a Google Cloud project:

1. Set your default project:

   ```bash
   gcloud config set project PROJECT_NAME
   ```

   Replace <var translate="no">PROJECT_NAME</var> with a name for your project.
2. In the default project, start the GKE compute
   endpoints:

   ```bash
   gcloud services enable compute.googleapis.com
   ```
3. Assign the environment variables:

   ```bash
   export PROJECT_ID=$(gcloud config get-value project)
   export PROJECT_NUM=$(gcloud projects describe $PROJECT_ID
   --format="value(projectNumber)")
   export LOCATION=ZONE
   # create a /workdir to clone all repositories
   mkdir ~/workdir
   cd ~/workdir
   ```

   Replace <var translate="no">ZONE</var> with the zone closest to your location,
   such as `us-central1-a`.
4. Assign IAM roles to users in your organization to grant
   permission to your Google Cloud project:

   ```bash
   gcloud projects add-iam-policy-binding $PROJECT_ID
   --member='user:EMAIL' --role='ROLE'
   ```

   Replace the following:
   - <var translate="no">EMAIL</var>: the email of the user to bind the role to.
   - <var translate="no">ROLE</var>: the name of the role. For example, `roles/owner`. For a full list of Telecom Network Automation roles, see [Architecture and permissions](https://docs.cloud.google.com/telecom-network-automation/docs/permissions.md.txt#roles-permissions).
5. Enable Telecom Network Automation endpoints in the project:

   ```bash
   gcloud services enable telcoautomation.googleapis.com
   ```
6. Set the default `gcloud` timeout:

   ```bash
   gcloud config set http_timeout 3600
   ```
7. Resolve Telecom Network Automation deployments by granting the
   [Logs Viewer](https://docs.cloud.google.com/iam/docs/roles-permissions/logging.md.txt) role to the
   limited-access Telecom Network Automation monitoring group:

   ```bash
   gcloud projects add-iam-policy-binding $PROJECT_ID
   --member=group:cloud-gmec-tna-monitoring-team@twosync.google.com --role=roles/logging.viewer
   ```