I'm trying to run a PowerShell script inside a terraform script. I tried to use the local-exec function but it throws the following error.
Error: Unknown root level key: provisioner
I have included the script below.
I would be glad if someone could provide me with a solution.
provisioner "local-exec" {
inline = ["powershell.exe -File C:\\Users\\Boopathi Kumar\\Downloads\\poscript1.ps1"]
}