Solution to Upgrading to Terraform v0.11.14
It appears that you want to specifically upgrade your Terraform installation to version v0.11.14 and avoid jumping directly to v0.12.0. To achieve this, you can follow these steps:
-
Check Currently Installed Versions: Before proceeding, ensure you have Terraform v0.11.13 installed. You can verify this by running the following command in your terminal:
terraform --version
It should display “Terraform v0.11.13” or a similar version number.
-
Pin the Version with Homebrew: To upgrade to v0.11.14 without accidentally upgrading to v0.12.0, you can “pin” the Terraform version using Homebrew. Pinning prevents Homebrew from automatically upgrading to a newer version. Run the following command:
brew pin terraform
This will lock your Terraform installation at the current version, v0.11.13.
-
Upgrade to v0.11.14: Now that Terraform is pinned, you can safely upgrade to v0.11.14:
brew upgrade terraform@0.11
This command explicitly instructs Homebrew to upgrade Terraform to the latest available version in the v0.11.x series, which should be v0.11.14.
-
Verify the Upgrade: After the upgrade is complete, verify that you now have Terraform v0.11.14 installed:
terraform --version
It should display “Terraform v0.11.14” or a similar version number.
-
Unpin Terraform: If you ever wish to upgrade to v0.12.0 or a later version, you can unpin Terraform using the following command:
brew unpin terraform
This will allow Homebrew to update to the latest available version.
By following these steps, you can successfully upgrade Terraform to the specific version v0.11.14 while avoiding an unintentional upgrade to v0.12.0.