I'd like to use the aws command line application in a pipeline, but it doesn't appear to be possible.
A working example is:
$ aws ecs register-task-definition --cli-input-json file://./mytask.json
However the following do not work:
$ cat ./mytask.json \
| aws ecs register-task-definition --cli-input-json file:///dev/stdin
Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 1 column 1 (char 0)
JSON received:
$ aws ecs register-task-definition --cli-input-json file://<(cat ./mytask.json)
Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 1 column 1 (char 0)
JSON received: