tfupdate

Update version constraints in Terraform configurations automatically

brewmacoslinux
Try with needOr install directly
Source

About

Update version constraints in your Terraform configurations

Commands

tfupdate

Examples

Update a specific provider to the latest version$ tfupdate provider aws
Update Terraform version constraint in all .tf files$ tfupdate terraform -v 1.5.0
Update a module version in a directory recursively$ tfupdate module github.com/example/module -v 2.0.0 .