Reasons for template verification failure

Last Updated: May 09, 2017

Format

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.

Version (ROSTemplateFormatVersion)

Check whether ROSTemplateFormatVersion is spelled correctly, and whether its value is 2015-09-01.

Mappings

Check whether the mapping definition conforms to ROS requirements. No function can be used in the mappings.

Parameters

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.

Resources

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.

Outputs

If outputs are defined, the value must be specified in the output field.

Unsupported resource types

Validation fails if an unsupported resource is defined in the template.

Other

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.

Thank you! We've received your feedback.