Template format error: unsupported structure seen in AWS CloudFormation

后端 未结 1 586
我在风中等你
我在风中等你 2021-02-06 23:37

I am trying to validate an AWS example CloudFormation template using a command like:

▶ aws cloudformation validate-template --template-body template.yml
<         


        
相关标签:
1条回答
  • 2021-02-07 00:14

    Apparently, the very unhelpful error message comes as a result of improper formatting in the CLI command.

    The --template-body argument must be specified as a file URI.

    Thus, the correct, runnable form of the command above is:

    ▶ aws cloudformation validate-template --template-body file://template.yml
    

    See this blog post for more information.

    0 讨论(0)
提交回复
热议问题