aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.45k stars 4.1k forks source link

"list indices must be integers, not dict" error for data-pipeline definitions that have a "values" object #1179

Closed dventimiglia closed 9 years ago

dventimiglia commented 9 years ago

The AWS DataPipeline developer guide (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-custom-templates.html) gives example JSON for parameter values wherein the values are in an array of objects:

{
  "values":[{
      "myS3OutputLoc":"myOutputLocation"
  }]
}

This seems not to be correct, and causes the error shown in the subject line. If, however, the value objects are provided not as an array of objects, then it works:

{
  "values":{
      "myS3OutputLoc":"myOutputLocation"
  }
}

Either the documentation or the code should change. I vote for the former.

kyleknap commented 9 years ago

Yep, you are correct. It looks like the documentation needs to be updated here. I will try to get this updated.

kyleknap commented 9 years ago

Looks like the documentation has been updated. I tested it out myself and it works. Closing issue.