forked from hashicorp/terraform-provider-google
-
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 legacy_name to TF resource override, autogen warning for IAM (has…
…hicorp#1088) Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
4447526
commit ca8099a
Showing
4 changed files
with
34 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ data "google_iam_policy" "admin" { | |
} | ||
resource "google_pubsub_topic_iam_policy" "editor" { | ||
topic = "projects/{{project}}/topics/{{topic}}" | ||
topic = "projects/{{project}}/topics/{{topic}}" | ||
policy_data = "${data.google_iam_policy.admin.policy_data}" | ||
} | ||
``` | ||
|
@@ -54,7 +54,8 @@ resource "google_pubsub_topic_iam_policy" "editor" { | |
|
||
```hcl | ||
resource "google_pubsub_topic_iam_binding" "editor" { | ||
topic = "projects/{{project}}/topics/{{topic}}" | ||
topic = "projects/{{project}}/topics/{{topic}}" | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
|
@@ -67,6 +68,7 @@ resource "google_pubsub_topic_iam_binding" "editor" { | |
```hcl | ||
resource "google_pubsub_topic_iam_member" "editor" { | ||
topic = "projects/{{project}}/topics/{{topic}}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ data "google_iam_policy" "admin" { | |
} | ||
resource "google_sourcerepo_repository_iam_policy" "editor" { | ||
repository = "{{project}}/{{repository}}" | ||
repository = "{{project}}/{{repository}}" | ||
policy_data = "${data.google_iam_policy.admin.policy_data}" | ||
} | ||
``` | ||
|
@@ -54,7 +54,8 @@ resource "google_sourcerepo_repository_iam_policy" "editor" { | |
|
||
```hcl | ||
resource "google_sourcerepo_repository_iam_binding" "editor" { | ||
repository = "{{project}}/{{repository}}" | ||
repository = "{{project}}/{{repository}}" | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
|
@@ -67,6 +68,7 @@ resource "google_sourcerepo_repository_iam_binding" "editor" { | |
```hcl | ||
resource "google_sourcerepo_repository_iam_member" "editor" { | ||
repository = "{{project}}/{{repository}}" | ||
role = "roles/editor" | ||
member = "user:[email protected]" | ||
} | ||
|