Unknown model· unknown
from NVIDIA HelpSteer3 Preference
how do i call a powershell script from within terraform which allows a Read-Host input?
- User
how do i call a powershell script from within terraform which allows a Read-Host input?
- Assistant
variable "input_variable" { description = "Input variable for the PowerShell script" type = string }
...
data "local_file" "ps_script" { content = <<-EOF param([string]input" EOF }
...
resource "null_resource" "run_powershell_script" { provisioner "local-exec" { command = "powershell.exe -File "{data.local_file.ps_script.content}\" -input \"{var.input_variable}"" } }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.