Skip to content

Commit

Permalink
Update firebase_database_instance docs and samples for region (#7106) (
Browse files Browse the repository at this point in the history
…#13467)

Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Jan 12, 2023
1 parent f01d967 commit 576870f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/7106.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none
Updates description for firebase_database_instance.region
```
14 changes: 8 additions & 6 deletions website/docs/r/firebase_database_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@ To get more information about Instance, see:
* How-to Guides
* [Official Documentation](https://firebase.google.com/products/realtime-database)

## Example Usage - Firebase Database Instance
## Example Usage - Firebase Database Instance Basic


```hcl
resource "google_firebase_database_instance" "basic" {
provider = google-beta
project = "my-project-name"
region = "us-west1"
region = "us-central1"
instance_id = "active-db"
}
```
## Example Usage - Firebase Database Instance Disabled
## Example Usage - Firebase Database Instance Full


```hcl
resource "google_firebase_database_instance" "full" {
provider = google-beta
project = "my-project-name"
region = "us-west1"
region = "europe-west1"
instance_id = "disabled-db"
type = "USER_DATABASE"
desired_state = "DISABLED"
}
```
## Example Usage - Firebase Database Instance Default
## Example Usage - Firebase Database Instance Default Database


```hcl
Expand Down Expand Up @@ -83,9 +83,10 @@ resource "google_project_service" "firebase_database" {
resource "google_firebase_database_instance" "default" {
provider = google-beta
project = google_firebase_project.default.project
region = "us-west1"
region = "us-central1"
instance_id = "rtdb-project-default-rtdb"
type = "DEFAULT_DATABASE"
depends_on = [google_project_service.firebase_database]
}
```

Expand All @@ -97,6 +98,7 @@ The following arguments are supported:
* `region` -
(Required)
A reference to the region where the Firebase Realtime database resides.
Check all [available regions](https://firebase.google.com/docs/projects/locations#rtdb-locations)

* `instance_id` -
(Required)
Expand Down

0 comments on commit 576870f

Please sign in to comment.