User is not authorized to perform: cloudformation:CreateStack

后端 未结 11 1677
天涯浪人
天涯浪人 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 01:56

    What @tedder42 said, but I also had to add the following to my group policy before I could deploy to lambda from inside visual studio.

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

提交回复
热议问题