Set up a project

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.
    • Update your existing version using the following command:

      gcloudcomponentsupdate
      
  • Confirm you have version 1.25.8 of the kubectl CLI.

  • Have one or more GDC racks at target locations.

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:

    gcloudconfigsetprojectPROJECT_NAME
    

    Replace PROJECT_NAME with a name for your project.

  2. In the default project, start the GKE compute endpoints:

    gcloudservicesenablecompute.googleapis.com
    
  3. Assign the environment variables:

    exportPROJECT_ID=$(gcloudconfigget-valueproject)
    exportPROJECT_NUM=$(gcloudprojectsdescribe$PROJECT_ID
    --format="value(projectNumber)")
    exportLOCATION=ZONE
    # create a /workdir to clone all repositories
    mkdir~/workdir
    cd~/workdir
    

    Replace ZONE 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:

    gcloudprojectsadd-iam-policy-binding$PROJECT_ID
    --member='user:EMAIL'--role='ROLE'
    

    Replace the following:

    • EMAIL: the email of the user to bind the role to.
    • ROLE: the name of the role. For example, roles/owner. For a full list of Telecom Network Automation roles, see Architecture and permissions.
  5. Enable Telecom Network Automation endpoints in the project:

    gcloudservicesenabletelcoautomation.googleapis.com
    
  6. Set the default gcloud timeout:

    gcloudconfigsethttp_timeout3600
    
  7. Resolve Telecom Network Automation deployments by granting the Logs Viewer role to the limited-access Telecom Network Automation monitoring group:

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月24日 UTC.