(ValidationError) when calling the CreateStack operation: Template format error: Every Description member must be a string
(ValidationError) when calling the CreateStack operation: Template format error: Every Description member must be a string
下图是我的问题。 SO 不允许我 post 因为一些关于格式化代码的错误,我在尝试一个小时后无法弄清楚如何解决。
Description
必须是文字字符串值。即使是returns一个字符串的表达式,比如你的那个,也是无效的。这里有一个相关的 question.
我也被这个坑过。归结为对 CloudFormation 内部函数的限制 (source):
Note
You can use intrinsic functions only in specific parts of a template. Currently, you can use intrinsic functions in resource properties, metadata attributes, and update policy attributes.
在这种情况下,"resource properties" 仅适用于属性字段的内容。我希望这会有所改变,因为我怀疑亚马逊对此有很多抱怨!发生这种情况时,我会很乐意更新答案。
下图是我的问题。 SO 不允许我 post 因为一些关于格式化代码的错误,我在尝试一个小时后无法弄清楚如何解决。
Description
必须是文字字符串值。即使是returns一个字符串的表达式,比如你的那个,也是无效的。这里有一个相关的 question.
我也被这个坑过。归结为对 CloudFormation 内部函数的限制 (source):
Note
You can use intrinsic functions only in specific parts of a template. Currently, you can use intrinsic functions in resource properties, metadata attributes, and update policy attributes.
在这种情况下,"resource properties" 仅适用于属性字段的内容。我希望这会有所改变,因为我怀疑亚马逊对此有很多抱怨!发生这种情况时,我会很乐意更新答案。