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

Fix wrong parameter name on sample code of google_organization_iam_policy #10087

Conversation

dharada1
Copy link

@dharada1 dharada1 commented Sep 16, 2021

Description

Got this error with the examples in document.
Argument should be org_id, but organization is specified in the document.

│ Error: Missing required argument
│
│   on organization_and_folders.tf line 5, in resource "google_organization_iam_policy" "test":
│    5: resource "google_organization_iam_policy" "test" {
│
│ The argument "org_id" is required, but no definition was found.
╵

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_organization_iam#google_organization_iam_policy

Also I confirmed in the code that org_id is correct argument.
https://github.com/hashicorp/terraform-provider-google/blob/master/google/provider.go#L1259
https://github.com/hashicorp/terraform-provider-google/blob/master/google/iam_organization.go#L10-L11

@dharada1
Copy link
Author

dharada1 commented Sep 18, 2021

I noticed that I should submit pullrequest to magic-modules repo.
GoogleCloudPlatform/magic-modules#5216
I'm going to close this PR.

@dharada1 dharada1 closed this Sep 18, 2021
@dharada1 dharada1 deleted the fix-example-of-google-organization-iam-policy-parameter branch September 18, 2021 16:26
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant