Unsupported block type

I am getting unsupported block types here. any idea what it should be?

provisioner “file” {
source = “{path.module}/sharepoint/" destination = "C:\\scripts" connection = { type = "winrm" user = "Administrator" password = "{var.admin_password}”
agent = “false”
}
}

provisioner “remote-exec” {
connection = {
type = “winrm”
user = “Administrator”
password = “${var.admin_password}”
agent = “false”
}
inline = [
“powershell.exe Set-ExecutionPolicy Unrestricted -force”,
"powershell.exe -version 4 -ExecutionPolicy Bypass -File

it says its supported

but why am i gettting error?

my version is

Terraform v0.12.24

  • provider.aws v2.56.0
  • provider.template v2.1.2

A provisioner block needs to be inside a resource block :wink:

1 Like