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.

feita há 2 anos77 visualizações
Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas