AWS CloudFormation 估算模板成本返回无效的 URL

3

我想更加熟悉使用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 控制台中手动启动此模板时,没有可用的链接:

enter image description here

我在控制台中填写的参数与命令中的参数相匹配。我填写的参数/选项有问题吗?或者,有关 AWS 帐户的问题应该注意哪些,以免我无法执行此操作?


如果有其他人想知道estimate-template-cost支持哪些资源类型,请参考以下链接:https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/217 - Pat Myron
1个回答

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接