Amazon web services 需要名为IAM-ManagedPolicy的功能
以下是错误:Amazon web services 需要名为IAM-ManagedPolicy的功能,amazon-web-services,amazon-iam,Amazon Web Services,Amazon Iam,以下是错误: { "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::ManagedPolicy]", "Description": “Some Permission boundary”, "Parameters": [], "Capabilities": [ "CAPABILITY_NAMED_IAM" ] } $ 运行
{
"CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::ManagedPolicy]",
"Description": “Some Permission boundary”,
"Parameters": [],
"Capabilities": [
"CAPABILITY_NAMED_IAM"
]
}
$
运行后:
$ aws cloudformation validate-template --template-url https://s3-sometemplate.yml
模板中定义了托管策略
这个错误意味着什么 这不是一个错误。这是正常的输出,列出了将来运行createstack或updatestack时需要指定的功能(通过--capabilities) 通过检查返回代码是否为0(表示命令已成功完成),您可以确认验证是否成功且没有错误 输出文件如下: 能力->(列表) 模板中的功能。如果模板包含IAM资源,则在对模板使用“创建堆栈”或“更新堆栈”操作时,必须为此参数指定CAPABILITY_IAM或CAPABILITY_NAMED_IAM值;否则,这些操作将返回InsufficientCapabilities错误。有关详细信息,请参阅 能力原因->(字符串)
在Capabilities response元素中生成值的资源列表。这不是错误。这是正常的输出,列出了将来运行createstack或updatestack时需要指定的功能(通过--capabilities) 通过检查返回代码是否为0(表示命令已成功完成),您可以确认验证是否成功且没有错误 输出文件如下: 能力->(列表) 模板中的功能。如果模板包含IAM资源,则在对模板使用“创建堆栈”或“更新堆栈”操作时,必须为此参数指定CAPABILITY_IAM或CAPABILITY_NAMED_IAM值;否则,这些操作将返回InsufficientCapabilities错误。有关详细信息,请参阅 能力原因->(字符串) 在Capabilities response元素中生成值的资源列表。另请参见:另请参见: