Ensure that your template is in a valid JSON format and is UTF8-encoded. A valid JSON format means that JSON can be resolved by programming languages.
Check whether ROSTemplateFormatVersion is spelled correctly, and whether its value is 2015-09-01.
Check whether the mapping definition conforms to ROS requirements. No function can be used in the mappings.
Check whether the parameter definition conforms to ROS requirements. No function can be used in the parameters. If the parameter definition contains a parameter restriction definition and a default value, the default value must also conform to the parameter restriction definition.
The resource ID cannot contain backslashes (/).
The Type attribute must be contained in the resource definition, and its value must be a string.
Values other than “Type”, “Properties”, “Metadata”, “DependsOn”, “DeletionPolicy”, and “Description” cannot be contained in the resource definition.
If outputs are defined, the value must be specified in the output field.
Validation fails if an unsupported resource is defined in the template.
Check that the template file size does not exceed 512 KB.
Check that SECTIONs other than “ROSTemplateFormatVersion”, “Description”, “Mappings”, Parameters’, ‘Resources’, and ‘Outputs’ are not used in the first grade of the template.