【问题标题】:Aws cloudformation validate-template keeps giving error (Template format error)Aws cloudformation validate-template 一直报错(模板格式错误)
【发布时间】:2014-11-10 22:42:14
【问题描述】:

从昨天开始我就一直被这个问题困扰, 我运行以下命令:

aws cloudformation validate-template --template-body test.json

(test.json 是我的模板) 它一直给我下面的错误:

A client error (ValidationError) occurred when calling the ValidateTemplate operation: Template format error: JSON not well-formed. (line 1, column 5).

我什至尝试使用不同的 aws 模板样本进行测试,但它仍然给我同样的错误(带有 diff clolumn 编号)。 有什么解决办法吗?

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation


    【解决方案1】:

    您发布的模板有效,但命令中存在语法错误,并且没有说明问题所在。试试这个:

    aws cloudformation validate-template --template-body file://template.json

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-23
      • 1970-01-01
      • 2021-05-24
      • 1970-01-01
      • 2017-04-05
      • 1970-01-01
      • 2017-06-18
      • 2018-08-28
      相关资源
      最近更新 更多