Deploy feature flags using the gcloud CLI
App Lifecycle Manager feature flags let you dynamically control feature availability and deliver configuration updates across deployed units without redeploying code. In this quickstart, you create a feature flag with App Lifecycle Manager, connect your service using OpenFeature, and verify the evaluated result in your Cloud Run application using the Google Cloud CLI.
Before you begin
-
Sign in to your Google Account.
If you don't already have one, sign up for a new account.
-
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 role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
Enable the App Lifecycle Manager, Artifact Registry, Infrastructure Manager, Developer Connect, Cloud Build, Cloud Storage, Cloud Run, and SaaS Config APIs, if any are not already enabled.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
To initialize the gcloud CLI, run the following command:
gcloud init -
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 role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
Enable the App Lifecycle Manager, Artifact Registry, Infrastructure Manager, Developer Connect, Cloud Build, Cloud Storage, Cloud Run, and SaaS Config APIs, if any are not already enabled.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
To initialize the gcloud CLI, run the following command:
gcloud init
Required roles
To get the permissions that you need to complete this quickstart, ask your administrator to grant you the following IAM roles on your project:
- SaaS Service Management Admin (
roles/saasservicemgmt.admin) - Artifact Registry Administrator (
roles/artifactregistry.admin) - Service Account Admin (
roles/iam.serviceAccountAdmin) - Service Account User (
roles/iam.serviceAccountUser) - Project IAM Admin (
roles/resourcemanager.projectIamAdmin) - Cloud Run Viewer (
roles/run.viewer) - Cloud Run Invoker (
roles/run.invoker) - Logs Viewer (
roles/logging.viewer)
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Create a SaaS offering
Create a SaaS offering named flags-cli-quickstart-saas-offering as the
top-level container for your application resources and feature flags. When using
the gcloud CLI, create the SaaS offering in both global and
us-central1 because resource replication isn't automated with the CLI. For
more information, see
Create a SaaS offering.
Create the SaaS offering in global and us-central1:
gcloud beta app-lifecycle-manager saas create flags-cli-quickstart-saas-offering \
--project=PROJECT_ID \
--location=global \
--locations=name=us-central1
gcloud beta app-lifecycle-manager saas create flags-cli-quickstart-saas-offering \
--project=PROJECT_ID \
--location=us-central1 \
--locations=name=us-central1
Replace PROJECT_ID with your project ID.
Grant roles to service accounts
App Lifecycle Manager automatically provisions a Google-managed service agent
(service-PROJECT_NUMBER@gcp-sa-saasservicemgmt.iam.gserviceaccount.com)
after you create your first App Lifecycle Manager resource, such as the SaaS
offering you created in the previous step.
Create a user-managed actuation service account and grant the required Identity and Access Management (IAM) roles for provisioning and flag evaluation:
Create the actuation service account (
flags-quickstart-actuation):gcloud iam service-accounts create flags-quickstart-actuation \ --project=PROJECT_ID \ --display-name="Flags quickstart actuation service account"Replace
PROJECT_IDwith your project ID.Grant the required predefined roles to the actuation service account on your project and on itself:
for role in \ roles/config.admin \ roles/storage.admin \ roles/run.admin \ roles/artifactregistry.reader \ roles/saasconfig.viewer; do gcloud projects add-iam-policy-binding PROJECT_ID \ --member="serviceAccount:flags-quickstart-actuation@PROJECT_ID.iam.gserviceaccount.com" \ --role="${role}" done for role in \ roles/iam.serviceAccountUser \ roles/iam.serviceAccountTokenCreator; do gcloud iam service-accounts add-iam-policy-binding \ flags-quickstart-actuation@PROJECT_ID.iam.gserviceaccount.com \ --project=PROJECT_ID \ --member="serviceAccount:flags-quickstart-actuation@PROJECT_ID.iam.gserviceaccount.com" \ --role="${role}" doneGrant the App Lifecycle Manager service agent the
roles/saasservicemgmt.serviceAgentrole on your project and theroles/iam.serviceAccountUserrole on the actuation service account:gcloud projects add-iam-policy-binding PROJECT_ID \ --member="serviceAccount:service-PROJECT_NUMBER@gcp-sa-saasservicemgmt.iam.gserviceaccount.com" \ --role="roles/saasservicemgmt.serviceAgent" gcloud iam service-accounts add-iam-policy-binding \ flags-quickstart-actuation@PROJECT_ID.iam.gserviceaccount.com \ --project=PROJECT_ID \ --member="serviceAccount:service-PROJECT_NUMBER@gcp-sa-saasservicemgmt.iam.gserviceaccount.com" \ --role="roles/iam.serviceAccountUser"Replace
PROJECT_NUMBERwith your project number.
Create a repository in Artifact Registry
To use App Lifecycle Manager, you need a repository in Artifact Registry. Create the repository:
gcloud artifacts repositories create flags-quickstart \
--project=PROJECT_ID \
--repository-format=docker \
--location=us-central1
This repository contains a blueprint (packaged Terraform files) describing how to provision your units.
Create a feature flagging application blueprint
Create a Python script that reads a feature flag and use it to build and push a Docker image:
Create a directory named
alm_dockerfor your Docker build context.In the
alm_dockerdirectory, create the fileflags.pywith this snippet:import google.auth.transport.grpc import google.auth.transport.requests import grpc import logging import time import os import sys from flask import Flask, jsonify from openfeature import api from openfeature.contrib.provider.flagd import FlagdProvider from openfeature.contrib.provider.flagd.config import ResolverType # --- Flask App Setup --- app = Flask(__name__) # --- Logging Setup --- logging.basicConfig(stream=sys.stdout) # Log to stdout for Cloud Run log = logging.getLogger(__name__) log.setLevel(logging.INFO) # Use INFO or DEBUG as needed # --- OpenFeature/Flagd Setup --- FLAG_KEY = "quickstart-flag" DEFAULT_FLAG_VALUE = False # Check for necessary environment variable provider_id = os.environ.get("FLAGD_SOURCE_PROVIDER_ID") if not provider_id: log.critical("FATAL: FLAGD_SOURCE_PROVIDER_ID environment variable not set.") sys.exit("FLAGD_SOURCE_PROVIDER_ID not set") # Exit if critical config is missing log.info(f"Initializing OpenFeature provider for ID: {provider_id}") def add_x_goog_request_params_header(config_name): return lambda context, callback: callback([("x-goog-request-params", f'name={config_name}')], None) try: # Configure gRPC credentials for Google Cloud service configservice_credentials = grpc.composite_channel_credentials( grpc.ssl_channel_credentials(), grpc.metadata_call_credentials( google.auth.transport.grpc.AuthMetadataPlugin( google.auth.default( scopes=["https://www.googleapis.com/auth/cloud-platform"] )[0], # Get just the credentials from the tuple google.auth.transport.requests.Request() ) ), grpc.metadata_call_credentials( add_x_goog_request_params_header(provider_id) ) ) # Set up the Flagd provider to connect to SaaS Config service # Using IN_PROCESS resolver type as recommended for direct gRPC connection provider = FlagdProvider( resolver_type=ResolverType.IN_PROCESS, host="saasconfig.googleapis.com", port=443, sync_metadata_disabled=True, # Important when using IN_PROCESS with direct service provider_id=provider_id, channel_credentials=configservice_credentials ) api.set_provider(provider) client = api.get_client() time.sleep(5) initial_flag_value = client.get_boolean_value(FLAG_KEY, DEFAULT_FLAG_VALUE) log.info(f"***** STARTUP FLAG CHECK ***** Flag '{FLAG_KEY}' evaluated to: {initial_flag_value}") except Exception as e: log.critical(f"FATAL: Failed to initialize OpenFeature provider: {e}", exc_info=True) # Depending on the desired behavior, you might exit or let Flask start # but log the critical failure. Exiting might be safer in production. sys.exit(f"Provider initialization failed: {e}") # --- Flask Routes --- @app.route('/') def home(): """Endpoint to check the feature flag's value.""" log.info(f"Request received for flag: {FLAG_KEY}") try: # Get the flag value. Use the client initialized earlier. # The default value (DEFAULT_FLAG_VALUE) is returned if the flag isn't found # or if the provider isn't ready/errors occur during evaluation. flag_value = client.get_boolean_value(FLAG_KEY, DEFAULT_FLAG_VALUE) log.info(f"Evaluated flag '{FLAG_KEY}': {flag_value}") return jsonify({ "flag_key": FLAG_KEY, "value": flag_value, }) except Exception as e: log.error(f"Error evaluating flag '{FLAG_KEY}': {e}", exc_info=True) # Return an error response but keep the server running return jsonify({ "error": f"Failed to evaluate flag {FLAG_KEY}", "details": str(e), }), 500 if __name__ == '__main__': port = int(os.environ.get('PORT', 8080)) log.info(f"Starting Flask server on port {port}") app.run(host='0.0.0.0', port=port)This Python script demonstrates how to access feature flags within your application running as a Docker image on an App Lifecycle Manager unit. It uses standard OpenFeature principles to integrate with the App Lifecycle Manager feature flag config service (
saasconfig.googleapis.com).Create a text file named
requirements.txtin thealm_dockerdirectory that contains this snippet:google-auth grpcio>=1.49.1,<2.0.0dev openfeature-sdk>=0.8.2 openfeature-provider-flagd>=0.6.1 requests typing_extensions Flask>=2.0In the
alm_dockerdirectory, create a file namedDockerfilewith the following content:FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY flags.py . CMD ["python", "flags.py"]In your local environment, build and push the Docker image:
cd alm_docker gcloud auth configure-docker us-central1-docker.pkg.dev export DOCKER_REGISTRY="us-central1-docker.pkg.dev/PROJECT_ID/flags-quickstart" export FULL_IMAGE_PATH="${DOCKER_REGISTRY}/flags-quickstart:latest" docker build --platform linux/amd64 -t "${FULL_IMAGE_PATH}" . docker push "${FULL_IMAGE_PATH}"Replace
PROJECT_IDwith your project ID.Return to your parent working directory and create an
alm_terraformdirectory.In
alm_terraform, create these files:main.tflocals { config_path = "projects/${var.system_unit_project}/locations/${var.system_unit_location}/featureFlagsConfigs/${var.system_unit_name}" docker_image_path = "${var.system_unit_location}-docker.pkg.dev/${var.system_unit_project}/${var.docker_repo_name}/${var.docker_tag}" } provider "google" { project = var.system_unit_project region = var.system_unit_location } resource "google_cloud_run_service" "flags_quickstart_service" { name = var.cloud_run_service_name location = var.system_unit_location project = var.system_unit_project template { spec { containers { image = local.docker_image_path env { name = "FLAGD_SOURCE_PROVIDER_ID" value = local.config_path } } service_account_name = var.actuation_sa } } }variables.tfvariable "actuation_sa" { description = "Actuation SA" type = string } variable "system_unit_project" { description = "Project id - variable set by App Lifecycle Manager" type = string } variable "system_unit_location" { description = "Location - variable set by App Lifecycle Manager" type = string } variable "system_unit_name" { description = "Unit name - variable set by App Lifecycle Manager" type = string } variable "docker_repo_name" { description = "The name of the Artifact Registry repository where the Docker image is stored." type = string default = "flags-quickstart" } variable "docker_tag" { description = "The tag of the Docker image to deploy." type = string default = "flags-quickstart:latest" } variable "cloud_run_service_name" { description = "Name for the Cloud Run service to be created." type = string default = "saas-flags-quickstart-svc" }
Use the application blueprint to create a unit
After you create an application blueprint that uses feature flags, create
an App Lifecycle Manager unit kind (flags-unit-kind), and then create and
provision a unit of this kind (flags-quickstart-unit).
For more information about units and unit kinds, see Design and package units of deployment.
To use the application blueprint to create and provision a unit, follow these steps:
To package your Terraform configuration as an OCI image (blueprint), create a file named
Dockerfilein youralm_terraformdirectory:# syntax=docker/dockerfile:1-labs FROM scratch COPY --exclude=Dockerfile --exclude=.git --exclude=.gitignore . /If you don't already have a
docker-containerbuilder, create one usingdocker buildx create, and then build and push the blueprint image from thealm_terraformdirectory to your Artifact Registry repository:cd alm_terraform docker buildx create --name container --driver=docker-container IMAGE_NAME="us-central1-docker.pkg.dev/PROJECT_ID/flags-quickstart/flags-quickstart-blueprint:latest" ENGINE_TYPE=inframanager ENGINE_VERSION=1.5.7 docker buildx build -t $IMAGE_NAME \ --builder=container \ --push \ --annotation "com.easysaas.engine.type=$ENGINE_TYPE" \ --annotation "com.easysaas.engine.version=$ENGINE_VERSION" \ --provenance=false .Replace
PROJECT_IDwith your project ID.Create the
flags-unit-kindandflags-releaseresources in bothglobalandus-central1:# Create unit kind in global and us-central1 gcloud beta app-lifecycle-manager unit-kinds create flags-unit-kind \ --project=PROJECT_ID \ --location=global \ --saas=flags-cli-quickstart-saas-offering gcloud beta app-lifecycle-manager unit-kinds create flags-unit-kind \ --project=PROJECT_ID \ --location=us-central1 \ --saas=flags-cli-quickstart-saas-offering # Create release referencing the blueprint image in global and us-central1 gcloud beta app-lifecycle-manager releases create flags-release \ --project=PROJECT_ID \ --location=global \ --unit-kind=flags-unit-kind \ --blueprint-package=$IMAGE_NAME gcloud beta app-lifecycle-manager releases create flags-release \ --project=PROJECT_ID \ --location=us-central1 \ --unit-kind=flags-unit-kind \ --blueprint-package=$IMAGE_NAMECreate the
flags-quickstart-unitunit:gcloud beta app-lifecycle-manager units create flags-quickstart-unit \ --project=PROJECT_ID \ --location=us-central1 \ --unit-kind=flags-unit-kind \ --management-mode=userProvision
flags-quickstart-unitand verify that it reaches theUNIT_STATE_READYstate:gcloud beta app-lifecycle-manager unit-operations create \ flags-quickstart-provision \ --project=PROJECT_ID \ --location=us-central1 \ --unit=flags-quickstart-unit \ --provision \ --provision-release=flags-release \ --provision-input-variables="variable=actuation_sa,value=flags-quickstart-actuation@PROJECT_ID.iam.gserviceaccount.com,type=string" \ --provision-input-variables="variable=project_id,value=PROJECT_ID,type=string" \ --provision-input-variables="variable=project_number,value=PROJECT_NUMBER,type=int" gcloud beta app-lifecycle-manager units describe flags-quickstart-unit \ --project=PROJECT_ID \ --location=us-central1 \ --format="value(state)"Replace
PROJECT_NUMBERwith your project number. Wait until thedescribecommand returnsUNIT_STATE_READYbefore continuing.
Create and provision a feature flag
Before your provisioned unit can use an App Lifecycle Manager feature flag, create the feature flag resource and start a rollout to propagate the configuration to the unit.
Create and provision the quickstart-flag feature flag:
In your environment, define these variables:
export PROJECT_ID="PROJECT_ID" export FLAG_ID="quickstart-flag" export FLAG_KEY="quickstart-flag" export UNIT_KIND_ID="flags-unit-kind" export ROLLOUT_KIND_ID="flags-quickstart-rollout-kind" export ROLLOUT_ID="flags-quickstart-rollout"Replace
PROJECT_IDwith your project ID.Create the feature flag resource:
gcloud beta app-lifecycle-manager flags create ${FLAG_ID} \ --project=${PROJECT_ID} \ --key=${FLAG_KEY} \ --flag-value-type=bool \ --location=global \ --unit-kind=${UNIT_KIND_ID} \ --with-default-evaluationCreate a revision:
export FLAG_REVISION_ID="${FLAG_ID}-rev1" gcloud beta app-lifecycle-manager flags revisions create ${FLAG_REVISION_ID} \ --project=${PROJECT_ID} \ --flag=${FLAG_ID} \ --location=globalCreate a release:
export FLAG_RELEASE_ID="${FLAG_ID}-rel1" gcloud beta app-lifecycle-manager flags releases create ${FLAG_RELEASE_ID} \ --project=${PROJECT_ID} \ --revisions=${FLAG_REVISION_ID} \ --unit-kind=${UNIT_KIND_ID} \ --location=globalCreate a rollout kind:
gcloud beta app-lifecycle-manager rollout-kinds create ${ROLLOUT_KIND_ID} \ --project=${PROJECT_ID} \ --unit-kind=${UNIT_KIND_ID} \ --rollout-orchestration-strategy=Google.Cloud.Simple.AllAtOnce \ --location=globalCreate the rollout:
gcloud beta app-lifecycle-manager rollouts create ${ROLLOUT_ID} \ --project=${PROJECT_ID} \ --flag-release=${FLAG_RELEASE_ID} \ --rollout-kind=${ROLLOUT_KIND_ID} \ --location=globalMonitor the rollout status:
gcloud beta app-lifecycle-manager rollouts describe ${ROLLOUT_ID} \ --project=${PROJECT_ID} \ --location=global
View the flag value in your running service
After your App Lifecycle Manager unit provisions the Cloud Run service, verify that your application is running and evaluating the feature flag:
In the Google Cloud console, go to the Cloud Run page:
Find the service named
saas-flags-quickstart-svcin theus-central1region. A checkmark next tosaas-flags-quickstart-svcindicates that it's running.To view its details, click
saas-flags-quickstart-svc:Click the Logs tab and look for a message similar to the following in the log entries:
INFO:__main__:***** STARTUP FLAG CHECK ***** Flag 'quickstart-flag' evaluated to: FalseThis log entry confirms that the application started, connected to the SaaS Config service, and evaluated the
quickstart-flagfeature flag.Click the Networking tab and copy the service URL listed in the Endpoints section.
From your terminal, send an authenticated request to the service:
curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" \ SERVICE_URLReplace
SERVICE_URLwith the service URL.Each time you send a request to the URL, the service evaluates the feature flag and returns its current value in JSON format. The output is similar to the following:
{ "flag_key": "quickstart-flag", "value": false }
You've deployed a Cloud Run service that reads an App Lifecycle Manager-managed feature flag. You can experiment with changing the flag's value and creating a new rollout to see your application pick up the change.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
To avoid ongoing charges to your Google Cloud account for the resources created in this quickstart, either delete the individual resources or delete the project.
Delete individual resources
If you used an existing Google Cloud project that you want to keep, delete the resources you created in reverse dependency order:
Mark
quickstart-flagfor cleanup, create a cleanup revision and flag release, and run a cleanup rollout to detach the flag fromflags-quickstart-unitandflags-unit-kind:gcloud beta app-lifecycle-manager flags update quickstart-flag \ --project=PROJECT_ID \ --location=global \ --state=cleanup gcloud beta app-lifecycle-manager flags revisions create quickstart-flag-cleanup-rev \ --project=PROJECT_ID \ --flag=quickstart-flag \ --location=global gcloud beta app-lifecycle-manager flags releases create quickstart-flag-cleanup-rel \ --project=PROJECT_ID \ --revisions=quickstart-flag-cleanup-rev \ --unit-kind=flags-unit-kind \ --location=global gcloud beta app-lifecycle-manager rollouts create quickstart-flag-cleanup-rollout \ --project=PROJECT_ID \ --flag-release=quickstart-flag-cleanup-rel \ --rollout-kind=flags-quickstart-rollout-kind \ --location=globalReplace
PROJECT_IDwith your project ID.Wait until the cleanup rollout succeeds, and then delete the rollouts, rollout kind, flag releases, flag revisions, and feature flag:
gcloud beta app-lifecycle-manager rollouts describe quickstart-flag-cleanup-rollout \ --project=PROJECT_ID \ --location=global gcloud beta app-lifecycle-manager rollouts delete flags-quickstart-rollout \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager rollouts delete quickstart-flag-cleanup-rollout \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager rollout-kinds delete flags-quickstart-rollout-kind \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager flags releases delete quickstart-flag-rel1 \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager flags releases delete quickstart-flag-cleanup-rel \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager flags revisions delete quickstart-flag-rev1 \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager flags revisions delete quickstart-flag-cleanup-rev \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager flags delete quickstart-flag \ --project=PROJECT_ID \ --location=global \ --quietDeprovision
flags-quickstart-unitto delete the provisioned Cloud Run service (saas-flags-quickstart-svc), and wait until thedescribecommand returnsUNIT_STATE_NOT_PROVISIONED:gcloud beta app-lifecycle-manager unit-operations create flags-quickstart-deprovision \ --project=PROJECT_ID \ --location=us-central1 \ --unit=flags-quickstart-unit \ --deprovision gcloud beta app-lifecycle-manager units describe flags-quickstart-unit \ --project=PROJECT_ID \ --location=us-central1 \ --format="value(state)"Delete the unit, blueprint releases, unit kinds, and SaaS offering:
gcloud beta app-lifecycle-manager units delete flags-quickstart-unit \ --project=PROJECT_ID \ --location=us-central1 \ --quiet gcloud beta app-lifecycle-manager releases delete flags-release \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager releases delete flags-release \ --project=PROJECT_ID \ --location=us-central1 \ --quiet gcloud beta app-lifecycle-manager unit-kinds delete flags-unit-kind \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager unit-kinds delete flags-unit-kind \ --project=PROJECT_ID \ --location=us-central1 \ --quiet gcloud beta app-lifecycle-manager saas delete flags-cli-quickstart-saas-offering \ --project=PROJECT_ID \ --location=global \ --quiet gcloud beta app-lifecycle-manager saas delete flags-cli-quickstart-saas-offering \ --project=PROJECT_ID \ --location=us-central1 \ --quietFor more information about App Lifecycle Manager deletion rules, see Delete resources.
Delete the Artifact Registry repository and the actuation service account:
gcloud artifacts repositories delete flags-quickstart \ --project=PROJECT_ID \ --location=us-central1 \ --quiet gcloud iam service-accounts delete \ flags-quickstart-actuation@PROJECT_ID.iam.gserviceaccount.com \ --project=PROJECT_ID \ --quiet
Delete the project
If you deployed this quickstart in a new Google Cloud project and no longer need the project, delete it by completing the following steps:
- In the Google Cloud console, go to the Manage resources page.
- In the project list, select the project that you want to delete, and then click Delete.
- At the prompt, type the project ID, and then click Shut down.
What's next
- Try the Deploy feature flags standalone quickstart to use flags independently of App Lifecycle Manager managed deployments.
- Explore the language-specific integration guides ( Java and Go).
- Review the App Lifecycle Manager overview to learn more about App Lifecycle Manager.