SSM Composite Doc RunShellScript Fails

0

I have created a composite SSM document that included the AWS-RunShellScript document: This is the action portion:

{
  "action": "aws:runDocument",
  "name": "RunShellScriptHello",
  "inputs": {
    "documentType": "SSMDocument",
    "documentPath": "AWS-RunShellScript",
    "documentParameters": "{\"commands\":\"echo hello >

/tmp/testcomp"}" } When I run it, I keep getting the error: Invalid format in plugin properties map[id:0.aws:runShellScript runCommand:echo hello > /tmp/testcomp timeoutSeconds:3600 workingDirectory:];

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

I just don't understand why I am getting this response.

gefragt vor 2 Jahren77 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen