CloudFormation uses JSON or YAML for configuration. Both of these formats are flawed, in my view, for different reasons. JSON can be quite tricky to read when you have a big object and fiddly to get right due to all of the curly braces. JSON does not allow comments either, which means that you cannot note something to explain it.