This repo helps create few confluent resources using terraform for any test use cases.
Export below two environment variables:
export CONFLUENT_CLOUD_API_KEY=YOUR_KEY
export CONFLUENT_CLOUD_API_SECRET=YOUR_SECRET
- To initialize the terraform setup run:
terraform init
- Create the plan:
terraform plan
- Create confluent resources:
terraform apply
and type yes on prompt display - To see the output variables run
terraform output -json
. If you have jq installed, thenterraform output -json | jq
. - Once you are done testing, destroy created resources:
terraform destroy
and type yes on prompt display
Terraform deploys below confluent resources:
- confluent_environment.development
- confluent_kafka_cluster.basic
- confluent_service_account.app
- confluent_schema_registry_cluster.essentials
- confluent_role_binding.app-schema-registry-resource-owner
- confluent_role_binding.app-kafka-cluster-admin
- confluent_ksql_cluster
- confluent_api_key.app-manager-kafka-api-key
- confluent_kafka_topic.topic
- confluent_api_key.env-manager-schema-registry-api-key