Automated user migration and management of AWS Identity and Access Management (IAM) resources

Ray Hodges
1 min readMar 25, 2024

--

In this project based on a real-world scenario, I acted as a Cloud Specialist with the mission to migrate users in an automated way and manage AWS IAM (Identity and Access Management) resources.

100 users needed to be migrated and have MFA (Multi-factor authentication) enabled on their accounts, as this is a security best practice.

To avoid repetitive and manual tasks in the AWS console, I needed to think about automating the processes.

I built out a user migration spreadsheet that contained the users, user groups, and passwords. Using GitBash with AWS CLI and Shell Script, I ran a script that automatically added the users to the assigned user groups with the assigned passwords. Next I attached policies to allow the users to change their passwords. I then created and attached the “EnforceMFAPolicy” policy to the user groups.

--

--

Ray Hodges

Seasoned Project Manager with a focus on Cloud & DevOps | AWS | Microsoft Azure | Google Cloud Platform | Oracle Cloud Infrastructure