Skip to content

How to apply 'allowed-policy-member-domains-all' to resource #2550

Answered by ludoo
skaaptjop asked this question in Q&A
Discussion options

You must be logged in to vote

Ach, so I forgot that org policy tags are in stage 0.

In your stage 0 tfvars:

org_policies_config = {
  constraints = {
    allowed_policy_member_domains = [
      # ...any workspace customer IDs you need to add here
    ]
  }
  tag_values = {
    allowed-policy-member-domains-all = {
      iam = {
        # replace prefix with your own prefix
        "roles/resourcemanager.tagUser" = [
          "serviceAccount:fast-05a-resman-pf-0@fast-05a-prod-iac-core-0.iam.gserviceaccount.com"
        ]
        "roles/resourcemanager.tagViewer" = [
          "serviceAccount:fast-05a-resman-pf-0r@fast-05a-prod-iac-core-0.iam.gserviceaccount.com"
        ]
      }
    }
  }
}

The tag value id you need …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@skaaptjop
Comment options

@ludoo
Comment options

ludoo Sep 2, 2024
Maintainer

@skaaptjop
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ludoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants