-
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.
deprecate 0.11 syntax in docs (resources) (#2574)
- Loading branch information
1 parent
8c5d797
commit 6cd8cb5
Showing
78 changed files
with
758 additions
and
767 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
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
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
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 |
---|---|---|
|
@@ -24,27 +24,27 @@ Three different resources help you manage IAM policies on bigtable instances. Ea | |
```hcl | ||
data "google_iam_policy" "admin" { | ||
binding { | ||
role = "roles/editor" | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
] | ||
} | ||
} | ||
resource "google_bigtable_instance_iam_policy" "editor" { | ||
project = "your-project" | ||
instance = "your-bigtable-instance" | ||
policy_data = "${data.google_iam_policy.admin.policy_data}" | ||
project = "your-project" | ||
instance = "your-bigtable-instance" | ||
policy_data = data.google_iam_policy.admin.policy_data | ||
} | ||
``` | ||
|
||
## google\_bigtable\_instance\_iam\_binding | ||
|
||
```hcl | ||
resource "google_bigtable_instance_iam_binding" "editor" { | ||
instance = "your-bigtable-instance" | ||
role = "roles/editor" | ||
members = [ | ||
instance = "your-bigtable-instance" | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
] | ||
} | ||
|
@@ -54,9 +54,9 @@ resource "google_bigtable_instance_iam_binding" "editor" { | |
|
||
```hcl | ||
resource "google_bigtable_instance_iam_member" "editor" { | ||
instance = "your-bigtable-instance" | ||
role = "roles/editor" | ||
member = "user:[email protected]" | ||
instance = "your-bigtable-instance" | ||
role = "roles/editor" | ||
member = "user:[email protected]" | ||
} | ||
``` | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,29 +29,29 @@ resource "google_storage_bucket" "bucket" { | |
resource "google_storage_bucket_object" "archive" { | ||
name = "index.zip" | ||
bucket = "${google_storage_bucket.bucket.name}" | ||
bucket = google_storage_bucket.bucket.name | ||
source = "./path/to/zip/file/which/contains/code" | ||
} | ||
resource "google_cloudfunctions_function" "function" { | ||
name = "function-test" | ||
description = "My function" | ||
runtime = "nodejs10" | ||
name = "function-test" | ||
description = "My function" | ||
runtime = "nodejs10" | ||
available_memory_mb = 128 | ||
source_archive_bucket = "${google_storage_bucket.bucket.name}" | ||
source_archive_object = "${google_storage_bucket_object.archive.name}" | ||
source_archive_bucket = google_storage_bucket.bucket.name | ||
source_archive_object = google_storage_bucket_object.archive.name | ||
trigger_http = true | ||
entry_point = "helloGET" | ||
} | ||
# IAM entry for all users to invoke the function | ||
resource "google_cloudfunctions_function_iam_member" "invoker" { | ||
project = "${google_cloudfunctions_function.function.project}" | ||
region = "${google_cloudfunctions_function.function.region}" | ||
cloud_function = "${google_cloudfunctions_function.function.name}" | ||
project = google_cloudfunctions_function.function.project | ||
region = google_cloudfunctions_function.function.region | ||
cloud_function = google_cloudfunctions_function.function.name | ||
role = "roles/cloudfunctions.invoker" | ||
role = "roles/cloudfunctions.invoker" | ||
member = "allUsers" | ||
} | ||
``` | ||
|
@@ -65,18 +65,18 @@ resource "google_storage_bucket" "bucket" { | |
resource "google_storage_bucket_object" "archive" { | ||
name = "index.zip" | ||
bucket = "${google_storage_bucket.bucket.name}" | ||
bucket = google_storage_bucket.bucket.name | ||
source = "./path/to/zip/file/which/contains/code" | ||
} | ||
resource "google_cloudfunctions_function" "function" { | ||
name = "function-test" | ||
description = "My function" | ||
runtime = "nodejs10" | ||
name = "function-test" | ||
description = "My function" | ||
runtime = "nodejs10" | ||
available_memory_mb = 128 | ||
source_archive_bucket = "${google_storage_bucket.bucket.name}" | ||
source_archive_object = "${google_storage_bucket_object.archive.name}" | ||
source_archive_bucket = google_storage_bucket.bucket.name | ||
source_archive_object = google_storage_bucket_object.archive.name | ||
trigger_http = true | ||
timeout = 60 | ||
entry_point = "helloGET" | ||
|
@@ -91,11 +91,11 @@ resource "google_cloudfunctions_function" "function" { | |
# IAM entry for a single user to invoke the function | ||
resource "google_cloudfunctions_function_iam_member" "invoker" { | ||
project = "${google_cloudfunctions_function.function.project}" | ||
region = "${google_cloudfunctions_function.function.region}" | ||
cloud_function = "${google_cloudfunctions_function.function.name}" | ||
project = google_cloudfunctions_function.function.project | ||
region = google_cloudfunctions_function.function.region | ||
cloud_function = google_cloudfunctions_function.function.name | ||
role = "roles/cloudfunctions.invoker" | ||
role = "roles/cloudfunctions.invoker" | ||
member = "user:[email protected]" | ||
} | ||
``` | ||
|
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
Oops, something went wrong.