terraform-provider-google icon indicating copy to clipboard operation
terraform-provider-google copied to clipboard

Resource google_cloud_identity_group_membership needs support for "create_ignore_already_exists"

Open stenalpjolly opened this issue 4 months ago • 0 comments

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 an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

The google_cloud_identity_group_membership resource lacks a feature to ignore errors when attempting to create a membership that already exists. In certain situations, such as running Terraform against existing infrastructure or when managing external systems, it is beneficial to have a create_ignore_already_exists flag to prevent errors from failing the entire run.

New or Affected Resource(s)

  • google_cloud_identity_group_membership

Potential Terraform Configuration

resource "google_cloud_identity_group_membership" "example" {
  group      = "groups/[email protected]"
  preferred_member_key {
    id = "user:[email protected]"
  }
  
  role = "MEMBER"

  # Proposed feature: ignore creation if the member already exists
  create_ignore_already_exists = true
}

References

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account#create_ignore_already_exists

b/373407327

stenalpjolly avatar Oct 09 '24 11:10 stenalpjolly