node.js - 用户 : is not authorized to perform: cloudformation:DescribeStacks

标签 node.js amazon-web-services aws-cloudformation amazon-iam

我正在尝试使用此命令无服务器部署将我的 Node.js 无服务器应用程序部署到 AWS,但我不断收到此错误

User: arn:aws:iam::900989174731:user/obafemitayor2 is not authorized to perform: cloudformation:DescribeStacks on resource: arn:aws:cloudformation:eu-central-1:900989174731:stack/app/* because no permissions boundary allows the cloudformation:DescribeStacks action

我已创建一个用户并授予该用户以下权限。

  1. AWSLambdaFullAccess
  2. AmazonS3FullAccess
  3. CloudFrontFullAccess
  4. AWSCloudFormationReadOnlyAccess

我也将此政策添加到我的群组中

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1449904348000",
            "Effect": "Allow",
            "Action": [
                "cloudformation:CreateStack",
                "cloudformation:CreateChangeSet",
                "cloudformation:ListStacks",
                "cloudformation:UpdateStack",
                "cloudformation:DescribeChangeSet",
                "cloudformation:ExecuteChangeSet"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

但我仍然收到该错误。有什么想法吗?

最佳答案

该错误非常不言自明,您的策略中缺少 cloudformation:DescribeStacks

关于node.js - 用户 : is not authorized to perform: cloudformation:DescribeStacks,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74979957/

相关文章:

javascript - 访问 Node js中对象内部的数组 - 未定义?

amazon-web-services - 如何使用安全组拒绝来自 AWS EC2 实例的所有出站流量?

python - 导入错误 : cannot import name md5

amazon-web-services - 在 SAM 部署期间检测到 AWS SAM 模板验证错误。伪参数 ${AWS::AccountId} 不接受

json - 我的自动缩放云形成模板不起作用

amazon-web-services - 资源属性 cloudformation 无效

amazon-web-services - 我们可以通过标记策略在 CloudFormation 堆栈(级别)上强制执行某些 aws 标记吗?

node.js - 使用 JSON 编码 tableCard 丰富响应

javascript - 如何使用 visual studio 代码调试 javascript 中的 mocha 测试?

c# - 为什么 Node.js 的符号和 CryptographicEngine 的符号结果不同?