Resolve Terraform Only Alphanumeric and Hyphens Allowed Error with Vim in Git Bash on Windows - DevPops-Inc/windows GitHub Wiki

• The following resolution is for if you receive an error saying only alphanumeric characters and hyphens are allowed in name when running terraform apply.
image

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

• Press the “I” key to get into INSERT mode.
image

• Use the arrow keys to move the cursor to the line the error reported was not alphanumeric or a hyphen.
image

• Replace the character with an alphanumeric character or a hyphen.
image

• Press “Esc” key to exit INSERT mode, type :wq and press the “Enter” key to save changes and exit the text editor.
image

• Type terraform apply and press the “Enter” key to apply the Terraform file and the error won’t appear this time around.
image