提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供 中文繁体 英文版本 中英对照 版本,有任何建议请联系yoyou2525@163.com。
我正在从使用aws cli命令转换为使用aws go api。 在弄清楚如何将参数传递到CreateStackInput调用时遇到麻烦。
这是我尝试使用aws api复制的命令行:
aws cloudformation create-stack --stack-name "poc1841" --template-url "https://s3-us-west-2.amazonaws.com/<path_removed>/cfn-cl-template.json" --parameters file:///params/poc1841.json
params文件如下所示:
[
{
"ParameterKey":"CNAMEPrefix",
"ParameterValue":"poc1841001"
}]
这是我正在使用的api调用:
input := &cloudformation.CreateStackInput{
TemplateBody: aws.String(templateBody),
StackName: aws.String(stackName),
OnFailure: aws.String("ROLLBACK"),
TimeoutInMinutes: &timeoutInMins }
CreateStackInput确实具有类型为Parameters的Parameters属性。 我需要将params json文件进行哪些特殊处理,才能将这些值传递到Parameter字段中?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.