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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up