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

Support setting IAM for FAST tags in resource management stage #2334

Merged
merged 2 commits into from
May 31, 2024

Conversation

ludoo
Copy link
Collaborator

@ludoo ludoo commented May 31, 2024

This allows injecting IAM roles to FAST-defined tags via variables.

Example tfvars:

tags = {
  environment = {
    values = {
      development = {
        iam = {
          "roles/resourcemanager.tagUser" = ["project-factory-dev"]
        }
      }
    }
  }
}

Example plan:

  # module.organization[0].google_tags_tag_value_iam_binding.default["environment/development:roles/resourcemanager.tagUser"] will be created
  + resource "google_tags_tag_value_iam_binding" "default" {
      + etag      = (known after apply)
      + id        = (known after apply)
      + members   = [
          + "serviceAccount:ldj-dev-resman-pf-0@ldj-prod-iac-core-0.iam.gserviceaccount.com",
        ]
      + role      = "roles/resourcemanager.tagUser"
      + tag_value = "tagValues/1028757044334"
    }

@ludoo ludoo enabled auto-merge (squash) May 31, 2024 11:58
@ludoo ludoo merged commit 5cae3fd into master May 31, 2024
13 checks passed
@ludoo ludoo deleted the ludo/resman-tag-iam branch May 31, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants