Я запускаю свой шаблон формирования облака с помощью 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": {
"Description": "Put incremental time this",
"Type": "String",
"Default": "60"
},
"VpcCIDR": {
"Description": "Please enter the IP range (CIDR notation) for this VPC",
"Type": "String",
"Default": "10.0.0.0/16"
},
"PublicSubnet1CIDR": {
"Description": "Please enter the IP range (CIDR notation) for the public subnet in the first Availability Zone",
"Type": "String",
"Default": "10.0.0.0/24"
},
"PublicSubnet2CIDR": {
"Description": "Please enter the IP range (CIDR notation) for the public subnet in the second Availability Zone",
"Type": "String",
"Default": "10.0.1.0/24"
},
"PrivateSubnet1CIDR": {
"Description": "Please enter the IP range (CIDR notation) for the private subnet in the first Availability Zone",
"Type": "String",
"Default": "10.0.2.0/24"
},
"PrivateSubnet2CIDR": {
"Description": "Please enter the IP range (CIDR notation) for the private subnet in the second Availability Zone",
"Type": "String",
"Default": "10.0.3.0/24"
}
}