Resolve Terraform Incompatible Provider Version Error with Vim in Git Bash on Windows - DevPops-Inc/windows GitHub Wiki

• The following resolution is for if you receive the incompatible provider version error when initializing Terraform.
image

• Type vim < Terraform file >.tf and press the “Enter” key to open the Terraform file in the Vim text editor.
image

• Press the up arrow key until you reach the provider “aws” { code block on the top of the script and move the cursor on the blank space between the region and version lines.
image

• Press the “D” key and press the down arrow to delete the blank space and version lines.
image

• Type :wq and press “Enter” key to save changes and exit the text editor.
image

• Type terraform init and press the “Enter” key and Terraform will initialize without the error this time.
image