Kaginari / terraform-provider-mongodb

Terraform provider for mongodb instance (selfhosted, AWS documentDB and cloud instances )
MIT License
26 stars 34 forks source link

Version 0.1.7 does not work #43

Open hashworks opened 1 month ago

hashworks commented 1 month ago

According to the GitHub Releases and the Terraform registry the latest version is 0.1.7, which should be used like this:

terraform {
  required_providers {
    mongodb = {
      source = "Kaginari/mongodb"
      version = "0.1.7"
    }
  }
}

This fails with:

Initializing the backend...
Initializing provider plugins...
- Finding kaginari/mongodb versions matching "0.1.7"...
╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider kaginari/mongodb: no available releases match the given
│ constraints 0.1.7
╵

If one removes the version constraint it installs 9.9.9:

Initializing the backend...
Initializing provider plugins...
- Finding latest version of kaginari/mongodb...
- Installing kaginari/mongodb v9.9.9...
- Installed kaginari/mongodb v9.9.9 (unauthenticated)

Why does this happen, and could you fix it?

ax-jlagross commented 1 month ago
mongodb = {
  source = "kaginari/mongodb"
  version = "0.1.7"
}

lowercase k worked for me.