Updates the organization's IAM policy to bind a role to a new member. Existing bindings are preserved.
data "hcp_organization" "example_org" {}
resource "hcp_service_principal" "sp" {
name = "example-sp"
parent = data.hcp_organization.example_org.resource_name
}
resource "hcp_organization_iam_binding" "example" {
principal_id = hcp_service_principal.sp.resource_id
role = "roles/contributor"
}
principal_id
(String) The principal to bind to the given role.role
(String) The role name to bind to the given principal.