我正在通过 AWS CLI 运行我的云形成模板。它工作正常并在 AWS 门户上创建堆栈,但我面临一个问题,即无法更改默认参数值。我使用 CLI 传递我自己的参数,但只有最后一个参数值从堆栈中发生变化(即 30),其余的没有变化,而是从模板主体中选择默认值。我已经通过更改参数的位置尝试了所有可能的方法,但它仍然相同。所以请让我知道我将如何解决这个恼人的问题。这是我的命令:-
aws --region eu-north-1 cloudformation create-stack --stack-name cli4 --template-body file://app_cli.json --parameters "ParameterKey"="Maxvalue","ParameterValue"="7","ParameterKey"="increment","ParameterValue"="1","ParameterKey"="incrementtime","ParameterValue"="30"
"Parameters": {
"EnvironmentName": {
"Description": "An environment name that will be prefixed to resource names",
"Type": "String",
"Default": "Codavel"
},
"amiID": {
"Description": "Put ami-id in this",
"Type": "String",
"Default": "ami-085045326daf7e309"
},
"Maxvalue": {
"Description": "Put max value in this",
"Type": "String",
"Default": "100"
},
"increment": {
"Description": "Put No. of incremental instance this",
"Type": "String",
"Default": "2"
},
"incrementtime": …
Run Code Online (Sandbox Code Playgroud) amazon-web-services aws-cloudformation aws-cli devops aws-cloudformation-custom-resource