Configura Cloud Deploy

Questa pagina descrive i passaggi per configurare Cloud Deploy. Per informazioni sui costi di Cloud Deploy, consulta Prezzi.

  1. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  2. Verify that billing is enabled for your Google Cloud project.

  3. Enable the Cloud Deploy API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

    Potresti dover abilitare altre API per utilizzare le funzionalità di Cloud Deploy, incluse le API Google Kubernetes Engine, Cloud Storage e Cloud Build. Per abilitarle, vai alla libreria API nella consoleGoogle Cloud e cerca queste API.
  4. Installa Google Cloud CLI. Dopo l'installazione, inizializza Google Cloud CLI eseguendo il seguente comando:

    gcloud init

    Se utilizzi un provider di identità (IdP) esterno, devi prima accedere a gcloud CLI con la tua identità federata.

  5. Se hai già installato gcloud CLI, assicurati di avere l'ultima versione disponibile:

     gcloud components update
    

Passaggi successivi