User is not authorized to perform: cloudformation:CreateStack

后端 未结 11 1660
天涯浪人
天涯浪人 2021-01-31 01:37

I\'m trying out Serverless to create AWS Lambdas and while creating a project using the command serverless project create I\'m getting the following error.

11条回答
  •  抹茶落季
    2021-01-31 02:16

    With the recent updates in AWS, the following inline policy will also work.

    {
       "Version": "2012-10-17",
       "Statement": [
           {
                "Sid": "VisualEditor0",
                "Effect": "Allow",
                "Action": [
                    "cloudformation:DeleteStack"
                ],
                "Resource": "*"
            }
        ]
    }
    

提交回复
热议问题