【问题标题】:aws cloudformation estimate-template-cost returning non-working URLaws cloudformation 估计模板成本返回非工作 URL
【发布时间】: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 帐户的内容是否不允许我执行此操作?

【问题讨论】:

标签: amazon-web-services templates amazon-s3 amazon-ec2 amazon-cloudformation


【解决方案1】:

啊,看来我只是选择了错误的模板来进行测试,因为这个模板只会启动 VPC 资源,而不会花费任何费用。

【讨论】:

    猜你喜欢
    • 2020-09-18
    • 2020-08-17
    • 2019-08-20
    • 2020-08-07
    • 2021-07-20
    • 2016-12-12
    • 2018-05-04
    • 1970-01-01
    • 2021-12-29
    相关资源
    最近更新 更多