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.

asked a year ago1858 views
2 Answers
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.

EXPERT
answered a year ago
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions