Enable and disable the Cloud Composer service

Stay organized with collections Save and categorize content based on your preferences.

Cloud Composer 1 | Cloud Composer 2

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

Console

Enable the Cloud Composer API:

Enable the API

gcloud

Enable the composer.googleapis.com API:

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

  • 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 the Service Usage page for Access Control.

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

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

    1. Pause the DAGs.
    2. If required, export the environment's data, such as DAGs from the environment's bucket.
    3. Delete your environment, including the resources that are not deleted automatically.

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