Skip to content

Commit

Permalink
Add legacy_name to TF resource override, autogen warning for IAM (has…
Browse files Browse the repository at this point in the history
…hicorp#1088)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and emilymye committed Aug 27, 2019
1 parent 4447526 commit ca8099a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
13 changes: 13 additions & 0 deletions google-beta/iam_pubsub_topic.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// 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.
//
// ----------------------------------------------------------------------------
package google

import (
Expand Down
13 changes: 13 additions & 0 deletions google-beta/iam_source_repo_repository.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// 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.
//
// ----------------------------------------------------------------------------
package google

import (
Expand Down
6 changes: 4 additions & 2 deletions website/docs/r/pubsub_topic_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
```
Expand All @@ -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]",
Expand All @@ -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]"
}
Expand Down
6 changes: 4 additions & 2 deletions website/docs/r/source_repo_repository_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
```
Expand All @@ -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]",
Expand All @@ -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]"
}
Expand Down

0 comments on commit ca8099a

Please sign in to comment.