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.
•
• Type vim < Terraform file >.tf
and press the “Enter” key to open the Terraform file in the Vim text editor.
•
• 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.
•
• Press the “D” key and press the down arrow to delete the blank space and version lines.
•
• Type :wq
and press “Enter” key to save changes and exit the text editor.
•
• Type terraform init
and press the “Enter” key and Terraform will initialize without the error this time.
•