terraform-google-modules / terraform-google-org-policy

Manages Google Cloud organization policies
https://registry.terraform.io/modules/terraform-google-modules/org-policy/google
Apache License 2.0
79 stars 79 forks source link

Set organization_id parameter as mandatory because of "google_organization_policy" terraform resource #49

Closed sly92 closed 2 years ago

sly92 commented 2 years ago

Terraform application return error when org_id is "null"

The organization id is currently mandatory due to required status org_id parameter in the resource google_organization_policy of terraform module.

terraform_org_policy_error

comment-bot-dev commented 2 years ago

Thanks for the PR! 🚀 Unfortunately it looks like some of our CI checks failed. See the Contributing Guide for details.

morgante commented 2 years ago

Are you setting the project_id or folder_id? One of them is required.

sly92 commented 2 years ago

this error is caused by a bad value of policy_for parameter (based on condition) Thanks for your reactivity