terraform init -upgrade

The init option that ignores the versions in the lock file and picks the newest provider and module versions the constraints still allow.

In more detail

It rewrites the dependency lock file, which you then review and commit as its own change. Without it, init keeps whatever the lock file already records, even if newer versions exist.

Related terms

Taught in

References

Certification courses