我正在尝试使用此命令无服务器部署
将我的 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
我已创建一个用户并授予该用户以下权限。
- AWSLambdaFullAccess
- AmazonS3FullAccess
- CloudFrontFullAccess
- 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/