This is an experiment to read data from the Confluent Cloud API to determine whether a named connector exists or not.
Useful output is an argument .status
containing either DEFINED
or NOT_DEFINED
Project is heavily derived from confluent-terraform-provider
Example Usage
see testcase
deploy plugin locally for dev/test
https://stackoverflow.com/questions/68182628/terraform-use-local-provider-plugin
cat <<EOF > ~/.terraformrc
provider_installation {
filesystem_mirror {
path = "${HOME}/.terraform.d/plugins"
}
direct {
exclude = ["terraform.local/*/*"]
}
}
EOF
Directory for the plugin
mkdir -p ~/.terraform.d/plugins/terraform.local/local/confluent-cloud-datasource-connectors/0.0.2/linux_amd64/
Symlink into place
ln -fs $(pwd)/terraform-provider-confluent-cloud-datasource-connectors_v0.0.2 ~/.terraform.d/plugins/terraform.local/local/confluent-cloud-datasource-connectors/0.0.2/linux_amd64/terraform-provider-confluent-cloud-datasource-connectors_v0.0.2