confluent_environment Resource

General Availability

confluent_environment provides an Environment resource. The resource lets you create, edit and delete environments on Confluent Cloud.

Example Usage

resource "confluent_environment" "prod" {
  display_name = "Production"

  stream_governance {
    package = "ESSENTIALS"
  }

  lifecycle {
    prevent_destroy = true
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

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

Import

You can import an Environment by using Environment ID, for example:

$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_environment.my_env env-abc123

Getting Started

The following end-to-end examples might help to get started with confluent_environment resource: