I am trying to install MongoDB from a script in a EC2 from AWS CloudFormation. I want the script to automatically run when the stack is created from the template.
On line 303 of this template by Amazon you can see they do this
However, I am confused on the use of the backslash at every line. What format is needed to put a bash script into a AWS template so it runs on startup?