Cloud Deploy を設定する

このページでは、Cloud Deploy を設定する手順について説明します。Cloud Deploy の料金については、料金をご覧ください。

  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

    Cloud Deploy の機能を使用するには、Google Kubernetes Engine、Cloud Storage、Cloud Build API などの他の API を有効にする必要がある場合があります。有効にするには、Google Cloud コンソールで API ライブラリに移動し、API ライブラリを検索します。
  4. Google Cloud CLI をインストールします。 インストール後、次のコマンドを実行して Google Cloud CLI を初期化します。

    gcloud init

    外部 ID プロバイダ(IdP)を使用している場合は、まず連携 ID を使用して gcloud CLI にログインする必要があります。

  5. すでに gcloud CLI をインストールしている場合は、最新のバージョンがインストールされていることを確認します。

     gcloud components update
    

次のステップ