If you get this message when you are trying to read templates from an S3 bucket (which is necessary if you have templates larger than a certain size), the fix is to use:
--template-url https:\my-bucket\someprefix\atemplate.yml
Instead of using --template-body, which is for local files.