【问题标题】:IAM: CloudFormation:GetTemplateSummary not allowed by userIAM: CloudFormation:GetTemplateSummary 用户不允许
【发布时间】:2016-09-22 01:35:52
【问题描述】:

现在我收到一条错误消息,提示用户不允许使用 CloudFormation:GetTemplateSummary

管理员用户有权访问 CF 的一般新堆栈,但相关的非管理员用户没有。

什么 IAM 角色将允许用户从 cloudformation 模板创建堆栈?

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation


    【解决方案1】:

    没有现成的角色。您可以创建一个策略来描述和创建堆栈。然后将策略附加到用户或用户所在的组。在以下策略中,CreateStack 操作允许用户创建堆栈。其他是只读操作,您可以选择保留或删除。

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "cloudformation:DescribeStacks",
                    "cloudformation:DescribeStackEvents",
                    "cloudformation:DescribeStackResource",
                    "cloudformation:DescribeStackResources",
                    "cloudformation:GetTemplate",
                    "cloudformation:GetTemplateSummary",
                    "cloudformation:CreateStack",
                    "cloudformation:UpdateStack",
                    "cloudformation:DeleteStack",
                    "cloudformation:List*"
                ],
                "Resource": "*"
            }
        ]
    }
    

    【讨论】:

    • 谢谢你,大部分都奏效了。我必须添加几个额外的字段:cloudformation:UpdateStackcloudformation:DeleteStackcloudformation:GetTemplateSummary
    猜你喜欢
    • 1970-01-01
    • 2021-05-30
    • 2017-07-27
    • 2019-10-30
    • 1970-01-01
    • 2023-04-05
    • 1970-01-01
    • 1970-01-01
    • 2014-04-08
    相关资源
    最近更新 更多