I am trying to validate an AWS example CloudFormation template using a command like:
▶ aws cloudformation validate-template --template-body template.yml
This leads to the following error message:
An error occurred (ValidationError) when calling the ValidateTemplate operation:
Template format error: unsupported structure.
I tried this on many templates, including example templates from the AWS documentation. So I know the templates are okay.
What am I doing wrong?