代码之家  ›  专栏  ›  技术社区  ›  Vivek Sable

从cloudformation运行yaml时出错

  •  0
  • Vivek Sable  · 技术社区  · 6 年前

    运行以下代码时出错:

    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运行。

    1 回复  |  直到 6 年前
        1
  •  0
  •   Aura Herrera    6 年前

    您是创建变更集还是使用选项更新堆栈 usePreviousValue ?错误提示您正在使用 有用价值 使用模板中不存在的参数。你只能使用 previous value 如果此参数是模板最新版本的一部分。