Getting errors when I run Terraform on VS Code: Unknown token:4:20 IDENT string [4,20]

I am having issues with my ‘’ code.
The type = string for variable “resource_group_name” gets this error message: Unknown token:4:20 IDENT string [4,20]

I cannot figure out how to fix this…

variable “resource_group_name” {
type = string
description = “The name of the resource group”

The string keyword is supposed to be quoted. HCL is still somewhat valid JSON.

Not in terraform 0.12

So what is the correct way to do this?

What version of terraform are you running?

If it’s 0.11, you have to quote “string”.