首页 > 解决方案 > 从 cloudformation 运行 yaml 时出错

问题描述

运行以下代码时出现错误:

Parameters:
  Counter:
    Type : Number
    Default : 5
    Description : Maximum number of times to check query execution

错误:

An error occurred (ValidationError) when calling the CreateChangeSet operation: Invalid input for parameter key Counter. Cannot specify usePreviousValue as true for a parameter key not in the previous template

我正在用 yaml 编写代码并通过 AWS cloudformation 运行。

标签: yamlamazon-cloudformation

解决方案


您是使用选项创建变更集还是更新堆栈usePreviousValue?该错误提到您正在使用usePreviousValue模板中不存在的参数。如果此参数是模板最新版本的一部分,则只能使用以前的值。


推荐阅读