aws-nuke icon indicating copy to clipboard operation
aws-nuke copied to clipboard

Cant delete IoTThingGroup

Open rstalbow opened this issue 11 months ago • 1 comments

AWS-Nuke is failing to delete an IoT Thing Group. Here is part of the error from Cloudtrail:

"eventTime": "2024-03-08T13:41:37Z",
    "eventSource": "iot.amazonaws.com",
    "eventName": "DeleteThingGroup",
    "awsRegion": "eu-west-2",
    "sourceIPAddress": "3.254.22.150",
    "userAgent": "aws-sdk-go/1.44.328 (go1.21.0; linux; amd64) exec-env/AWS_ECS_FARGATE",
    "errorCode": "InvalidRequestException",
    "errorMessage": "This operation does not support dynamic thing groups. Thing group arn: arn:aws:iot:eu-west-2:730335588724:thinggroup/os-linux",
    "requestParameters": {
        "thingGroupName": "os-linux",
        "expectedVersion": 1
    },

I should add that I was able to delete it in the AWS Console without issue

rstalbow avatar Mar 08 '24 13:03 rstalbow

Looks like dynamic groups have to be deleted by a different API call, but they are listed with the same listing call.

ekristen avatar Mar 15 '24 05:03 ekristen