Enabling and disabling the Cloud Composer service

This page explains how to enable and disable the Cloud Composer service for your Google Cloud project.

For information about services management on Google Cloud, see Enabling and Disabling Services.

Enable the Cloud Composer service

This section describes how to enable the Cloud Composer service in your Google Cloud project.

Before you begin

Enable Cloud Composer API

To enable the Cloud Composer service:

Console

  1. In the Google Cloud Console, go to the Cloud Composer API page.

    Go to Cloud Composer API

  2. Click Enable.

gcloud

Run the gcloud services enable command:

gcloud services enable composer.googleapis.com

API

Use the services.enable method to enable the composer.googleapis.com API.

Terraform

Use the google_project_service resource to configure the composer.googleapis.com API.

Disable the Cloud Composer service

This section describes how to disable the Cloud Composer service in your Google Cloud project.

Before you begin

  • Make sure there are no active Cloud Composer environments in your project. Disabling the API irreversibly deletes tenant project parts of active Cloud Composer environments, and these environments become unusable.

  • To disable the Cloud Composer service, you must have the correct Identity and Access Management permissions. To learn about the IAM requirements for Service Usage, see Service Usage page for Access Control.

  • To avoid additional charges, complete the following steps for each environment before you disable the Cloud Composer API:

    • Delete your environment and delete the Cloud Storage bucket for the environment. Otherwise, you are billed for Cloud Composer resources.
    • Wait until in-progress environment operations have completed; operations include creating, updating, or deleting an environment.
    • Wait until all DAGs are no longer running.

Disable Cloud Composer API

To disable the Cloud Composer service:

Console

  1. In the Google Cloud Console, go to the Cloud Composer API page.

    Go to Cloud Composer API

  2. Click Manage.

  3. Click Disable API.

gcloud

Run the gcloud services disable command:

gcloud services disable composer.googleapis.com

API

Use the services.disable method to disable the composer.googleapis.com API.

Terraform

Remove the configuration for the composer.googleapis.com API. You usually use the google_project_service resource to configure Google Cloud services.

What's next