yaml - 从 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 运行。
解决方案
您是使用选项创建变更集还是更新堆栈usePreviousValue
?该错误提到您正在使用usePreviousValue
模板中不存在的参数。如果此参数是模板最新版本的一部分,则只能使用以前的值。
推荐阅读
- oracle - Oracle UNIQUE 约束允许在不同情况下使用相同的值
- c# - 无法在“FooEntity”上配置键,因为它是派生类型。必须在根类型“Foo”上配置密钥
- javascript - 在精确部分显示 div
- r - 在ggplotly折线图中填充背景间隔
- sql-server - “无法继续执行,因为会话处于终止状态”错误?
- xaml - XAML UWP ContentDialog 自定义标题 HorizontalAlignment = Stretch?
- javascript - 如何连接数组对象中的两个键?JS
- redirect - 将 CloudFront 放在 AWS Amplify 前面时如何避免 301 重定向循环?
- c++ - 什么是无序动态初始化、部分有序动态初始化和有序动态初始化
- html - html在文本输入上展开元素/表单