-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
closes #13163 Signed-off-by: Modular Magician <magic-modules@google.com> Signed-off-by: Modular Magician <magic-modules@google.com>
- Loading branch information
1 parent
8805cc8
commit 785235c
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:new-resource | ||
google_firebase_storage_bucket | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
--- | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** Type: MMv1 *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in | ||
# .github/CONTRIBUTING.md. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
subcategory: "Cloud Storage for Firebase" | ||
page_title: "Google: google_firebase_storage_bucket" | ||
description: |- | ||
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](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources. | ||
|
||
To get more information about Bucket, see: | ||
|
||
* [API documentation](https://firebase.google.com/docs/reference/rest/storage/rest/v1beta/projects.buckets) | ||
* How-to Guides | ||
* [Official Documentation](https://firebase.google.com/docs/storage/) | ||
|
||
## Example Usage - Firebasestorage Bucket Basic | ||
|
||
|
||
```hcl | ||
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](/docs/configuration/resources.html#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](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#user_project_override). |