1

I have written AWS ssm document using PowerShell and YAML. See below code

schemaVersion: '2.2'
description: Command Document Example JSON Template
mainSteps:
  - action: aws:runPowerShellScript
    name: R21AutomationSSM
    inputs:
      runCommand: [
            $logPath: 'C:\SALogs'
            ]

Getting below error while executing this document:

Invalid format in plugin properties map[runCommand:$logPath: 'C:\SALogs'];

error json: cannot unmarshal string into Go struct field RunScriptPluginInput.RunCommand of type []string

I am not sure that is this related to yaml or any other ? Please help.

Ashish Goyanka
  • 207
  • 3
  • 11

0 Answers0