Terraform Command: 0.12upgrade

Originally published at: https://sweetops.com/sub/command-0-12upgrade-terraform-by-hashicorp/

The 0.12upgrade subcommand automatically rewrites existing configurations for Terraform 0.12 compatibility. By default, 0.12upgrade changes configuration files in the current working directory. However, an explicit path can be provided to another directory if desired, which may be useful for automating migrations of several modules in the same repository.