gpt4 book ai didi

aws-cloudformation - 上传模板文件 CloudFormation 以允许 EKS 集群上的外部 DNS 时出现错误 : At least one Resources member must be defined.

转载 作者:行者123 更新时间:2023-12-03 07:33:56 24 4
gpt4 key购买 nike

我收到“模板格式错误:必须定义至少一个资源成员”。当我尝试将模板文件上传到 cloudFormation 以允许 EKS 集群上的外部 DNS 时出错我要上传的文件是

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"route53:ChangeResourceRecordSets"
],
"Resource": [
"arn:aws:route53:::hostedzone/*"
]
},
{
"Effect": "Allow",
"Action": [
"route53:ListHostedZones",
"route53:ListResourceRecordSets"
],
"Resource": [
"*"
]
}
]
}

Obviously I'm pretty new to this..can anybody give me a clue to where I am going wrong?

最佳答案

您的 CloudFormation 没有必需的 Resources 部分。请检查正确的format of a template .

关于aws-cloudformation - 上传模板文件 CloudFormation 以允许 EKS 集群上的外部 DNS 时出现错误 : At least one Resources member must be defined.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70594048/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com