【发布时间】:2017-10-14 15:39:03
【问题描述】:
我正在尝试更熟悉使用 AWS 的成本。我正在尝试将 aws cloudformation estimate-template-cost 与 AWS 快速入门模板之一结合使用。
这是我的命令,它返回一个 URL:
$: aws --region="us-west-2" cloudformation estimate-template-cost --template-url="https://s3.amazonaws.com/quickstart-reference/hashicorp/vault/latest/templates/quickstart-hashicorp-vault-master.template" --parameters='[{"ParameterKey":"KeyPairName","ParameterValue":"","UsePreviousValue":false},{"ParameterKey":"AccessCIDR","ParameterValue":"0.0.0.0/0","UsePreviousValue":false},{"ParameterKey":"EmailAddress","ParameterValue": "","UsePreviousValue": false},{"ParameterKey":"AvailabilityZones", "ParameterValue":"us-west-2a,us-west-2b,us-west-2c","UsePreviousValue":false}]'
{
"Url": "http://calculator.s3.amazonaws.com/calc5.html?key=cloudformation/500b0d9e-22fd-400a-bfa3-7ad34dfeb592"
}
返回的 URL 只是将我带到成本计算器网站,没有填写任何信息,只是空白表格。
我还注意到,当我尝试在 AWS 控制台中手动启动此模板时,没有可用的链接:
我在 Console 中填写的参数与命令中的参数一致。我填写的参数/选项有问题吗?或者,我应该查找的有关 AWS 帐户的内容是否不允许我执行此操作?
【问题讨论】:
-
如果其他人想知道
estimate-template-cost支持哪些资源类型:github.com/aws-cloudformation/…
标签: amazon-web-services templates amazon-s3 amazon-ec2 amazon-cloudformation