can't delete StackSets in CloudFormation

0

aAways show Failed to delete StackSet - StackSet is not empty and 1 validation error detected: Value null at 'operationId' failed to satisfy constraint: Member must not be null

also using copilot app delete show

execute svc delete: delete service: get template body of stack "todo-production-backend": get template todo-production-backend: AccessDenied: User: arn:aws:iam::9*********:user/zavier.lau@t*******is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::*************role/todo-production-EnvManagerRole status code: 403, request id: 56667e20-7f93-445d-9f65-b42a9bd057c3

Thanks.

已提問 1 年前檢視次數 1931 次
2 個答案
0

To delete a StackSet, you must first delete all stack instances in the stack set. The "StackSet is not empty" error suggests this hasn't been done yet.

專家
已回答 1 年前
0

With AWS Copilot, the credentials you use will require sts:AssumeRole permissions on the EnvManagerRoles for any environment you are working with.

In the IAM console, confirm that the trusted entities under EnvManagerRole shows your user as a trusted entity. The trust relationship should look something like this:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": [
          "arn:aws:iam::9*********:user/zavier.lau@t*******is"
        ]
      },
      "Action": "sts:AssumeRole"
    }
  ]
}

profile pictureAWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南