google_firebase_app_check_debug_token

A debug token is a secret used during the development or integration testing of an app. It essentially allows the development or integration testing to bypass app attestation while still allowing App Check to enforce protection on supported production Firebase services.

To get more information about DebugToken, see:

Example Usage - Firebase App Check Debug Token Basic

resource "google_firebase_web_app" "default" {
  provider = google-beta

  project      = "my-project-name"
  display_name = "Web App for debug token"
}

# It takes a while for App Check to recognize the new app
# If your app already exists, you don't have to wait 30 seconds.
resource "time_sleep" "wait_30s" {
  depends_on      = [google_firebase_web_app.default]
  create_duration = "30s"
}

resource "google_firebase_app_check_debug_token" "default" {
  provider = google-beta

  project      = "my-project-name"
  app_id       = google_firebase_web_app.default.app_id
  display_name = "Debug Token"
  token        = "00000000-AAAA-BBBB-CCCC-000000000000"

  depends_on = [time_sleep.wait_30s]
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

DebugToken can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import DebugToken using one of the formats above. For example:

import {
  id = "projects/{{project}}/apps/{{app_id}}/debugTokens/{{debug_token_id}}"
  to = google_firebase_app_check_debug_token.default
}

When using the terraform import command, DebugToken can be imported using one of the formats above. For example:

$ terraform import google_firebase_app_check_debug_token.default projects/{{project}}/apps/{{app_id}}/debugTokens/{{debug_token_id}}
$ terraform import google_firebase_app_check_debug_token.default {{project}}/{{app_id}}/{{debug_token_id}}
$ terraform import google_firebase_app_check_debug_token.default {{app_id}}/{{debug_token_id}}

User Project Overrides

This resource supports User Project Overrides.