hcp_group_members (Resource)

The group members resource manages the members of an HCP Group.

The user or service account that is running Terraform when creating an hcp_group_members resource must have roles/admin on the organization.

Example Usage

resource "hcp_group_members" "example" {
  group = hcp_group.example.resource_name
  members = [
    hcp_user_principal.example1.id,
    hcp_user_principal.example2.id,
  ]
}

Schema

Required

Import

Import is supported using the following syntax:

# Group Members can be imported by specifying the group resource name
terraform import hcp_group_members.example "iam/organization/org_id/group/group-name"