Jenna's Runbooks
Jenna's Runbooks

Follow

Jenna's Runbooks

Follow
Boto3 Script to Reset AWS IAM User Passwords

Photo by Luca Bravo on Unsplash

Boto3 Script to Reset AWS IAM User Passwords

Jenna's Runbooks's photo
Jenna's Runbooks
Β·Feb 15, 2023Β·

1 min read

Here's a simple boto3 script πŸ“œ to reset AWS IAM user passwords that I wrote. It's integrated with a password generator tool to match the strict AWS password policy enforced in my environment. It also includes an optional argument to list all current users allowing you to capture the username you need to reset which can help eliminate some back-and-forth Q&A with the requester.

Pain points I was looking to address with this one:

βœ… No more logging into the AWS console UI

βœ… No more crafting the "aws iam update-login-profile …" command

βœ… No more manually generating passwords to match the strict password policy enforced

Link to Script: https://github.com/jksprattler/aws-security/blob/main/scripts/aws_iam_user_password_reset.py

Β 
Share this