rhyeal / aws-rotate-iam-keys

Rotate your IAM Keys to be in compliance with security best practices
GNU General Public License v3.0
339 stars 132 forks source link

Fail to delete the old access key #81

Open JerryGerrit opened 1 year ago

JerryGerrit commented 1 year ago

HI , I found an issue.
In my case , at least once fail on every 10 attempts

./aws-rotate-iam-keys Rotating keys for profiles: default Verifying configuration Verifying credentials Creating new access key Created new key AKXXXXXXXXXXXXXXXX Verifying new access key Updating profile: default Deleting old access key

An error occurred (InvalidClientTokenId) when calling the DeleteAccessKey operation: The security token included in the request is invalid.

version: /usr/bin/aws-rotate-iam-keys --version AWS Rotate IAM Keys (c) 2018+ Adam Link. Licensed under the GNU General Public License. Thanks to all the contributors! version 0.9.8.5

Is there any way to debug this issue? Seems it do not support the "--debug" option