gpt4 book ai didi

amazon-web-services - Cloudformation 提示 "array items are not unique"

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

cloudformation 模板有效,但给出了一个似乎未记录的错误。

资源 MoodleRDS 的属性验证失败,并显示消息:#/VPCSecurityGroups:数组项不唯一

由于帖子太长,代码已上传到 github。

https://github.com/rkhyd/MoodleQuickStart/blob/main/MoodleQuickStartv2.json

关于如何修复的任何想法?

我检查了文档,但找不到任何此类引用。

提前致谢

最佳答案

这个问题其实已经很清楚了。它表示您的安全组列表中的值不唯一。这是您输入的内容:

"VPCSecurityGroups": [
{
"Fn::GetAtt": [
"DBSecGroup",
"GroupId"
]
},
{
"Ref": "DBSecGroup"
}
],

您在这里所做的是,您在列表中放入了 2 个值,但它们实际上是相同的值...Fn:GetAtt 将为您提供 DBSecGroup id ,同样的情况也会发生在 "Ref":"DBSecGroup" 上,这意味着实际上,您在列表中放置了 2 个完全相同的值。删除其中一个就可以了。

关于amazon-web-services - Cloudformation 提示 "array items are not unique",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74334403/

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