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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "member" output attribute in google_iam_workload_identity_pool_provider #13029

Open
haizaar opened this issue Nov 14, 2022 · 0 comments

Comments

@haizaar
Copy link

haizaar commented Nov 14, 2022

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

It will be great for google_iam_workload_identity_pool_provider to have a member output, similar to google_service_account. It will safe us constructing membership strings like we do today:

data "google_iam_policy" "terraform_sa_workload_identity_user" {
  binding {
    role = "roles/iam.workloadIdentityUser"

    members = [
      "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool_provider.gh_actions.name}",
    ]
  }
}

New or Affected Resource(s)

  • google_iam_workload_identity_pool_provider

Potential Terraform Configuration

resource "google_iam_workload_identity_pool_provider" "gh_actions" {
}
data "google_iam_policy" "terraform_sa_workload_identity_user" {
  binding {
    role = "roles/iam.workloadIdentityUser"

    members = [
      google_iam_workload_identity_pool_provider.gh_actions.member,
    ]
  }
}

References

b/302672368

@haizaar haizaar changed the title Support for member output attribute in google_iam_workload_identity_pool_provider Support for "member" output attribute in google_iam_workload_identity_pool_provider Nov 14, 2022
@rileykarson rileykarson added this to the Goals milestone Jan 30, 2023
@github-actions github-actions bot added forward/review In review; remove label to forward service/iam-wlid labels Aug 17, 2023
@roaks3 roaks3 added feature-request and removed forward/review In review; remove label to forward labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants