Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow projects/ prefix for the project field in project IAM resources #1780

Conversation

modular-magician
Copy link
Collaborator

Upstreams hashicorp/terraform-provider-google#5722

Release Note Template for Downstream PRs (will be copied)

iam: `google_project_iam_member` and `google_project_iam_binding`'s `project` field can be specified with an optional `projects/` prefix

Derived from GoogleCloudPlatform/magic-modules#3147

…es (hashicorp#3147)

* Make iam_project.go.erb just .go

* Allow `projects/` prefix for the project field in project IAM resources

This patch allows the user to specify the value of the project field for
project IAM resources as `project-id` or `projects/project-id`.

Note that the above was already true for google_project_iam_policy [1].
This patch ensures that the above is also true for other project IAM
resources like google_project_iam_member and google_project_iam_binding.

[1] See commit 2f2f19f2776d238fe854088f9906cff8b1a2db67

Co-authored-by: Jazel Canseco <jazel.canseco@gmail.com>
Signed-off-by: Modular Magician <magic-modules@google.com>
@ghost ghost added the size/xs label Feb 19, 2020
@modular-magician modular-magician merged commit d8b5108 into hashicorp:master Feb 19, 2020
@modular-magician modular-magician deleted the downstream-pr-d0ac14df3808a80758f6366769ae8cd44ad3794c branch November 16, 2024 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant