Skip to content

A Terraform plugin that allows to manage and configure Qdrant Cloud resources

License

Notifications You must be signed in to change notification settings

qdrant/terraform-provider-qdrant-cloud

Repository files navigation

Qdrant Cloud Terraform Provider

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.

Requirements

Building The Provider

Clone the repository:

git clone [email protected]:<your_org>/terraform-provider-qdrant-cloud.git

Enter the provider directory and build the provider:

cd terraform-provider-qdrant-cloud
go build

Using The Provider

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.

Developing The Provider

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
...

Updating the generated Go Client to interact with the Qdrant public API

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

Testing

In order to test the provider, you can run make test.

$ make test

This will run the unit tests in the provider.

Releasing

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.

Contributing

If you find any issues or would like to contribute, feel free to create an issue or a pull request.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

About

A Terraform plugin that allows to manage and configure Qdrant Cloud resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •