Add --source-type tfregistryModule to the release latest command to allow us to get the latest version number of a given module from Terraform Registry.
Currently only the official public registry is supported. There are other APIs and request/response fields, but we define only the ones we need here to keep it simple. The service discovery protocol is also not implemented for now.
Add
--source-type tfregistryModule
to therelease latest
command to allow us to get the latest version number of a given module from Terraform Registry.To avoid depending on a specific version of Terraform, we implement a pure Terraform Registry API client. https://www.terraform.io/docs/registry/api.html
Currently only the official public registry is supported. There are other APIs and request/response fields, but we define only the ones we need here to keep it simple. The service discovery protocol is also not implemented for now.