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

aws-nuke lists only 25 IoTCertificate a time

Open ccatterina opened this issue 2 years ago • 0 comments

Hi, I'm trying to delete all the IoTCertificates (~ 5000 certs) on my AWS account except one but aws-nuke lists only 25 certificates a time. Here's my configuration:

 regions:
 - eu-central-1
 
 account-blocklist:
 - "XXXXXXXXX" 
 
 accounts:
   "XXXXXXXXX":
     filters:
       IoTCertificate:
         - type: exact
           value: xxxxxxx
 
 resource-types:
   targets:
     - IoTCertificate

When I launch aws-nuke it finds 25 certificates and removes them, if I relaunch it, it finds other 25 certs and so on.

I think this bug is caused by the fact that the listCertificates results are paginated.

ccatterina avatar Jul 12 '22 12:07 ccatterina