google_firebase_app_check_recaptcha_v3_config

An app's reCAPTCHA V3 configuration object.

To get more information about RecaptchaV3Config, see:

Example Usage - Firebase App Check Recaptcha V3 Config Basic

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

  project      = "my-project-name"
  display_name = "Web App for reCAPTCHA V3"
}

# 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_recaptcha_v3_config" "default" {
  provider = google-beta

  project     = "my-project-name"
  app_id      = google_firebase_web_app.default.app_id
  site_secret = "6Lf9YnQpAAAAAC3-MHmdAllTbPwTZxpUw5d34YzX"
  token_ttl   = "7200s"

  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

RecaptchaV3Config can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/apps/{{app_id}}/recaptchaV3Config"
  to = google_firebase_app_check_recaptcha_v3_config.default
}

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

$ terraform import google_firebase_app_check_recaptcha_v3_config.default projects/{{project}}/apps/{{app_id}}/recaptchaV3Config
$ terraform import google_firebase_app_check_recaptcha_v3_config.default {{project}}/{{app_id}}
$ terraform import google_firebase_app_check_recaptcha_v3_config.default {{app_id}}

User Project Overrides

This resource supports User Project Overrides.