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 terraform provider version to latest$ tfupdate provider aws
update specific terraform module to new version$ tfupdate module -v 2.0.0 ./terraform/
update all terraform module versions in directory$ tfupdate module -r ./terraform/
update terraform version constraint in configuration$ tfupdate terraform -v 1.5.0
check what terraform versions need updating$ tfupdate release list