繁体   English   中英

尝试在AWS CloudFormation CLI中提示参数字段时遇到问题

[英]Having issues trying to prompt parameter fields in the aws cloudformation CLI

我有一个可在控制台上使用的功能堆栈,但是当我尝试在CLI中运行它时遇到了问题。 这是发生了什么:

[user@lsikala1 ~]$ aws cloudformation create-stack --stack-name G2Devopsproject --template-body https://s3.amazonaws.com/g2internship2018/G2InternshipDevopsbuild.json 
An error occurred (ValidationError) when calling the CreateStack operation: Parameters: [KeyName, Subnets, DBPassword, VpcId, DBUser] must have values

创建CloudFormation堆栈时,AWS CLI不会提示您输入参数。 相反,您必须使用--parameters参数提供它们。 create-stack命令的参考中

--parameters (清单)

参数结构的列表,用于指定堆栈的输入参数。 […]

当然,您只需要在CloudFormation模板中指定参数值而没有默认值即可。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM