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.

asked 2 years ago76 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions