google_firebase_storage_bucket

An association between a Firebase project and a Google Cloud Storage bucket. This association enables integration of Cloud Storage buckets with Firebase such as Firebase SDKS, Authentication, and Security Rules.

To get more information about Bucket, see:

Example Usage - Firebasestorage Bucket Basic

resource "google_storage_bucket" "default" {
  provider                    = google-beta
  name                        = "test_bucket"
  location                    = "US"
  uniform_bucket_level_access = true
}

resource "google_firebase_storage_bucket" "default" {
  provider  = google-beta
  project   = "my-project-name"
  bucket_id = google_storage_bucket.default.id
}

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

Bucket can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/buckets/{{bucket_id}}"
  to = google_firebase_storage_bucket.default
}

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

$ terraform import google_firebase_storage_bucket.default projects/{{project}}/buckets/{{bucket_id}}
$ terraform import google_firebase_storage_bucket.default {{project}}/{{bucket_id}}
$ terraform import google_firebase_storage_bucket.default {{bucket_id}}

User Project Overrides

This resource supports User Project Overrides.