confluent_tf_importer
resource provides an Importer resource that enables exporting of your existing Confluent Cloud resources to Terraform Configuration (main.tf
) and Terraform State (terraform.tfstate
) files to a local directory called imported_confluent_infrastructure
.
See Resource Importer for Confluent Terraform Provider for step-by-step instructions on how to use the confluent_tf_importer
resource.
resource "confluent_tf_importer" "example" {
resources = ["confluent_service_account", "confluent_environment"]
}
The following arguments are supported:
resources
- (Optional List of Strings) A list of resources names to export. Defaults to all exportable resources.output_path
- (Optional Strings) An absolute path to a folder for outputting generated TF state and TF configuration files for your infrastructure. The folder is created if it doesn't exist. Defaults to ./imported_confluent_infrastructure
.These are the exportable resources:
The following end-to-end examples might help to get started with the confluent_tf_importer
resource:
cloud-importer
: Export _Cloud_ resources (for example, Service Accounts, Environments)kafka-importer
: Export _Kafka_ resources (for example, ACLs, Topics)