Automated user migration and management of AWS Identity and Access Management (IAM) resources
Project description:
In this project based on a real-world scenario, I acted as Cloud Specialist with the mission to migrate users in an automated way and manage AWS IAM (Identity and Access Management) resources.
There were 100 users that 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.
Using GitBash with AWS CLI and Shell Script
The users were divided into these subgroups
- cloudAdmin
- DBA
- LinuxAdmin
- networkAdmin
The list of users was provided in a csv format, so the users were uploaded from csv to aws using aws cli and shell scrip. The detailed instructions can be found here.
CSV of users looks something like this , in this example we will use list of 5 users.
Below command run the shell script in aws shell and allocates users in the group.
Once the script is executed check the execution manually, below we can see that users are attached to the groups.
More detailed instructions will be covered in another article very soon. So Stay tuned.