Closed sharu1204 closed 4 years ago
Hi, @sharu1204
The default source type is github
(for historical reason). You should use --source-type=tfregistryModule
option to fetch the latest version of modules in Terraform Registry.
$ tfupdate release latest --help
Usage: tfupdate release latest [options] <SOURCE>
Arguments
SOURCE A path of release data source.
Valid format depends on --source-type option.
- github or gitlab:
owner/repo
e.g. terraform-providers/terraform-provider-aws
- tfregistryModule
namespace/name/provider
e.g. terraform-aws-modules/vpc/aws
Options:
-s --source-type A type of release data source.
Valid values are
- github (default)
- gitlab
- tfregistryModule
Try the followings:
$ tfupdate release latest --source-type=tfregistryModule terraform-aws-modules/vpc/aws
2.38.0
$ tfupdate release latest --source-type=tfregistryModule terraform-aws-modules/security-group/aws
3.10.0
Thanks for the explanation. It perfectly worked. I will close it
Tried to fetch the latest version of modules in Terraform Registry, but the command shows an error.
Steps to Reproduce
Installed the latest
tfupdate
Expected Behavior
$ tfupdate release latest {namespace/name/provider}
returns the latest version of modulesActual Behavior
The same issue happened with docker as well.
Maybe I'm missing something, but any insight?
P.S. Thank you so much for the great tool