confluent_flink_compute_pool
provides a Flink Compute Pool resource that enables creating, editing, and deleting Flink Compute Pool on Confluent Cloud.
resource "confluent_environment" "development" {
display_name = "Development"
}
resource "confluent_flink_compute_pool" "main" {
display_name = "standard_compute_pool"
cloud = "AWS"
region = "us-east-1"
max_cfu = 5
environment {
id = confluent_environment.development.id
}
}
The following arguments are supported:
display_name
- (Required String) The name of the Flink Compute Pool.cloud
- (Required String) The cloud service provider that runs the Flink Compute Pool.region
- (Required String) The cloud service provider region that hosts the Flink Compute Pool.max_cfu
- (Required Integer) Maximum number of Confluent Flink Units (CFUs) that the Flink compute pool should auto-scale to. The accepted values are: 5
, 10
, 20
, 30
, 40
and 50
.environment
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Environment that the Flink Compute Pool belongs to, for example, env-abc123
.In addition to the preceding arguments, the following attributes are exported:
id
- (Required String) The ID of the Flink Compute Pool, for example, lfcp-abc123
.api_version
- (Required String) The API Version of the schema version of the Flink Compute Pool, for example, fcpm/v2
.kind
- (Required String) The kind of the Flink Compute Pool, for example, ComputePool
.resource_name
- (Required String) The Confluent Resource Name of the Flink Compute Pool.You can import a Flink Compute Pool by using Environment ID and Flink Compute Pool ID, in the format <Environment ID>/<Flink Compute Pool ID>
. The following example shows how to import a Flink Compute Pool:
$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_flink_compute_pool.main env-abc123/lfcp-abc123