This is a Terraform provider for Qdrant Cloud, which is the DBaaS solution for Qdrant database, which is a vector similarity search engine with extended functionality. The provider allows you to manage your Qdrant Cloud resources using Terraform.
- Terraform 1.7.x+
- Go 1.22+ (to build the provider plugin)
swagger-codegen
brew install swagger-codegen
Clone the repository:
git clone git@github.com:<your_org>/terraform-provider-qdrant-cloud.git
Enter the provider directory and build the provider:
cd terraform-provider-qdrant-cloud
go build
If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init
to initialize the provider.
Here is an example of how to use this provider:
provider "qdrant" {
alias = "qdrant_cloud"
api_key = "<your_api_key>"
}
Replace <your_api_key>
with your actual API key and URL.
If you wish to work on the provider, you'll first need Go installed on your machine (version 1.21+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin
to your $PATH
.
To compile the provider, run make build
. This will build the provider and put the provider binary in the $GOPATH/bin
directory.
$ make build
...
$ $GOPATH/bin/terraform-provider-qdrant-cloud
...
This assumes that you cloned the qdrant-cloud-cluster-api to the same base-path as this repo (terraform-provider-qdrant-cloud)
make update-go-client
In order to test the provider, you can run make test
.
$ make test
This will run the unit tests in the provider.
In order to release the provider (available for maintainers only):
- Go to the releases on GitHib
- Edit the 'DRAFT' (see pencil)
- Typing a 'Tag', e.g. v1.3.2 (note that we are using semantic versioning)
- Edit the 'Release Title' with the version you want to release (like v1.3.2)
- Click 'Publish release' button
This will automatically create the artifacts and place them in the assets, create a tag and invoke a webhook in the terraform provider registry. After a while (approx 5min) the release will be available at the terraform provider registry as latest release.
If you find any issues or would like to contribute, feel free to create an issue or a pull request.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.