confluent_group_mapping Resource

General Availability

confluent_group_mapping provides a Group Mapping resource that enables creating, editing, and deleting group mappings on Confluent Cloud.

Example Usage

resource "confluent_group_mapping" "application-developers" {
  display_name = "Application Developers"
  description  = "Admin access to production environment for Engineering"
  filter       = "\"engineering\" in groups"
}

resource "confluent_role_binding" "envadmin" {
  principal   = "User:${confluent_group_mapping.application-developers.id}"
  role_name   = "EnvironmentAdmin"
  crn_pattern = data.confluent_environment.prod.resource_name
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the preceding arguments, the following attributes are exported:

Import

You can import a Group Mapping by using Group Mapping ID, for example:

$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_group_mapping.application-developers group-abc123