DEV Community

Dev Power
Dev Power

Posted on

How to rotate AWS Access Keys with PowerShell

I'm still recovering from the LastPass breach. Because my IAM keys were in LP, I had to go through all of them and replace them.

As I had multiple keys to be replaced, I created a Powershell script to replace all the keys in my AWS credentials file.

The article explaining the script is here:

https://cloudinternals.net/aws/how-to-rotate-aws-access-keys-with-powershell/

I hope it comes in handy to other people too.

Top comments (0)