The group resource manages a HCP Group.
The user or service account that is running Terraform when creating an hcp_group
resource must have roles/admin
on the parent resource; either the project or organization.
resource "hcp_group" "example" {
display_name = "example-group"
description = "My new group!"
}
display_name
(String) The group's display_name - maximum length of 50 charactersdescription
(String) The group's description - maximum length of 300 charactersresource_id
(String) The group's unique identifierresource_name
(String) The group's resource name in the format iam/organization/<organization_id>/group/<name>
Import is supported using the following syntax:
# Group can be imported by specifying the group resource name
terraform import hcp_group.example "iam/organization/org_id/group/group-name"