2 Answers
Hi Kevin,
Yep, this has come up in the past. I’m not able to locate the exact post, but I do recall it had something to do with copy-paste rather than upload from local or S3. Seems copy-paste into the CloudFormation window does not format properly and leaves some hidden character in the script. If you upload, it seemed to work. Could you try this?
–Scott
Same error, but neither loading from S3 bucket or local directory worked
Don’t right click on the file in GitHub and save as, this will add a load of html formatting to your Yaml file. As Brian says, view the RAW output and download that or copy / paste works if you are careful.
This works fine for me. In GitHub, either view the raw file and save it, or check out / download the repo. Then upload. Don’t copy and paste from the formatted view.
I read the response from a previous post on the same error and it stated that the script had fewer lines than what the error shows. None the less, I received the error.