googleFirebaseStorageBucket
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:
- API documentation
- How-to Guides
- Official Documentation
Example Usage - Firebasestorage Bucket Basic
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const googleStorageBucketDefault = new google.storageBucket.StorageBucket(
this,
"default",
{
location: "US",
name: "test_bucket",
provider: "${google-beta}",
uniform_bucket_level_access: true,
}
);
const googleFirebaseStorageBucketDefault =
new google.firebaseStorageBucket.FirebaseStorageBucket(this, "default_1", {
bucket_id: googleStorageBucketDefault.id,
project: "my-project-name",
provider: "${google-beta}",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
googleFirebaseStorageBucketDefault.overrideLogicalId("default");
Argument Reference
The following arguments are supported:
-
bucketId
- (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 formatprojects/{{project}}/buckets/{{bucketId}}
-
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.