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.

gefragt vor einem Jahr1931 Aufrufe
2 Antworten
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.

EXPERTE
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen