我正在尝试使用类似下面的命令验证一个AWS示例CloudFormation模板:
▶ aws cloudformation validate-template --template-body template.yml
这将导致以下错误消息:
An error occurred (ValidationError) when calling the ValidateTemplate operation:
Template format error: unsupported structure.
我尝试过很多模板,包括AWS文档中的示例模板。所以我知道这些模板没问题。
我做错了什么?