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 #3638

Conversation

modular-magician
Copy link
Collaborator

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

Derived from GoogleCloudPlatform/magic-modules#5216

@modular-magician modular-magician merged commit cc5e1d9 into hashicorp:master Sep 21, 2021
@modular-magician modular-magician deleted the downstream-pr-be79c3bee64389aa9142ca5efd5c96970a8b7a76 branch November 16, 2024 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant