forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'resources' reading and 'location_id' setting on Firebase P… (Goo…
…gleCloudPlatform#3319) * Add FirebaseLocation fine grained resource * Updates for firebase finalize location Removed the custom decoder and replaced with the "fine grain" resource operator "nested_query". Updated the import_id so that importing wouldn't crash terraform Co-authored-by: Chris Stephens <[email protected]>
- Loading branch information
1 parent
4bced80
commit 2ce57c4
Showing
3 changed files
with
66 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
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
19 changes: 19 additions & 0 deletions
19
templates/terraform/examples/firebase_project_location_basic.tf.erb
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,19 @@ | ||
resource "google_project" "default" { | ||
provider = google-beta | ||
|
||
project_id = "tf-test%{random_suffix}" | ||
name = "tf-test%{random_suffix}" | ||
org_id = "<%= ctx[:test_env_vars]['org_id'] %>" | ||
} | ||
|
||
resource "google_firebase_project" "default" { | ||
provider = google-beta | ||
project = google_project.default.project_id | ||
} | ||
|
||
resource "google_firebase_project_location" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
project = google_firebase_project.default.project | ||
|
||
location_id = "us-central" | ||
} |