Skip to content

Latest commit

 

History

History
101 lines (69 loc) · 3.2 KB

firebase_storage_bucket.html.markdown

File metadata and controls

101 lines (69 loc) · 3.2 KB
subcategory page_title description
Cloud Storage for Firebase
Google: google_firebase_storage_bucket
An association between a Firebase project and a Google Cloud Storage bucket.

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.

~> Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.

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:


  • bucket_id - (Optional) Required. Immutable. The ID of the underlying Google Cloud Storage bucket

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Attributes Reference

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

  • id - an identifier for the resource with format projects/{{project}}/buckets/{{bucket_id}}

  • name - Resource name of the bucket in the format projects/PROJECT_IDENTIFIER/buckets/BUCKET_ID

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • delete - Default is 20 minutes.

Import

Bucket can be imported using any of these accepted formats:

$ 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.