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

fixes exclude project or folder behaviour #68

Closed msikora-rtb closed 1 year ago

msikora-rtb commented 1 year ago

Fixes: Error: Error creating Policy: Resource already exists - apply blocked by lifecycle params: &orgpolicy.Policy{Name:(string)(0xc0008e2fb0), Spec:(orgpolicy.PolicySpec)(0xc0012e0840), Parent:(*string)(0xc0008e30e0)}.

with module.tag_strategy["enforceDisableServiceAccountKeyCreation"].module.gcp_org_policy_v2.google_org_policy_policy.policy_boolean_exclude_projects["can-create-keys"], on .terraform/modules/tag_strategy.gcp_org_policy_v2/modules/org_policy_v2/boolean_constraints.tf line 119, in resource "google_org_policy_policy" "policy_boolean_exclude_projects": 119: resource "google_org_policy_policy" "policy_boolean_exclude_projects" {

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

comment-bot-dev commented 1 year ago

@msikora-rtb Thanks for the PR! 🚀
✅ Lint checks have passed.

bharathkkb commented 1 year ago

Thanks for the PR but this should be fixed now with https://github.com/terraform-google-modules/terraform-google-org-policy/pull/71