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.

preguntada hace 2 años77 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas