confluent_role_binding
describes a Role Binding.
provider "confluent" {
cloud_api_key = var.confluent_cloud_api_key # optionally use CONFLUENT_CLOUD_API_KEY env var
cloud_api_secret = var.confluent_cloud_api_secret # optionally use CONFLUENT_CLOUD_API_SECRET env var
}
data "confluent_role_binding" "example" {
id = "rb-abc123"
}
output "example" {
value = data.confluent_role_binding.example
}
The following arguments are supported:
id
- (Required String) The ID of the Role Binding (for example, rb-abc123
).In addition to the preceding arguments, the following attributes are exported:
principal
- (Required String) A principal User to bind the role to, for example, "User:u-111aaa" for binding to a user "u-111aaa", or "User:sa-111aaa" for binding to a service account "sa-111aaa".role_name
- (Required String) A name of the role to bind to the principal. See Confluent Cloud RBAC Roles for a full list of supported role names.crn_pattern
- (Required String) A Confluent Resource Name(CRN) that specifies the scope and resource patterns necessary for the role to bind.