<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jagdeep Kaur Saini on Medium]]></title>
        <description><![CDATA[Stories by Jagdeep Kaur Saini on Medium]]></description>
        <link>https://medium.com/@jagdeepk.work?source=rss-28d3cf4201be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ueTOdLkvREdDqatbQRMSBg.jpeg</url>
            <title>Stories by Jagdeep Kaur Saini on Medium</title>
            <link>https://medium.com/@jagdeepk.work?source=rss-28d3cf4201be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:47:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jagdeepk.work/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automated user migration and management of AWS Identity and Access Management (IAM) resources]]></title>
            <link>https://medium.com/@jagdeepk.work/automated-user-migration-and-management-of-aws-identity-and-access-management-iam-resources-7bee26c524ad?source=rss-28d3cf4201be------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bee26c524ad</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[shellscripting]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[aws-iam-best-practices]]></category>
            <category><![CDATA[aws-iam]]></category>
            <dc:creator><![CDATA[Jagdeep Kaur Saini]]></dc:creator>
            <pubDate>Thu, 20 Jul 2023 02:14:08 GMT</pubDate>
            <atom:updated>2023-07-20T02:14:08.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdK6qaygPGSPH-ajQu82ow.png" /><figcaption>Depiction of Cloud provider and services &amp; technologies involved in this real-world scenario</figcaption></figure><p><strong>Project description:</strong></p><p>In this project based on a real-world scenario, I acted as Cloud Specialist with the mission to migrate users from <strong><em>on-premises to cloud</em></strong>, in an automated way and manage AWS IAM (Identity and Access Management) resources: creating users and assigning them permissions as part of AWS user groups (created according to team of the user) to follow <strong><em>Principle of Least Privilege(POLP) — security best practice</em></strong>.</p><p>There were 100+ users that needed to be migrated and have <strong><em>MFA (Multi-factor authentication)</em></strong> enabled on their accounts, as this another security best practice.</p><p>To <strong><em>avoid repetitive and manual tasks</em></strong> in the AWS console, I needed to think about automating the processes. Hence, using GitBash with AWS CLI and Shell Script, I used an automation script to create IAM users from user data entered in rows in a .CSV file. Follow steps below to understand the solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AE_ZAX_PBZlbp9eByk9L8g.png" /><figcaption>Solution Architecture of the Cloud Project</figcaption></figure><p><strong>Step-by-Step Solution:</strong></p><p>1. Customize your users data to comply with AWS IAM users, groups, and password policy. Accumulate all data in excel file saved as .CSV file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*zMO4MLLkeUe7qYT4Tt8mcw.png" /><figcaption>Sample usersData.csv file</figcaption></figure><p>2. Login into AWS console and create AWS User Groups according to the teams and assign permissions to access the required services to accomplish the daily tasks following <strong><em>Principle of Least Privilege(POLP) — security best practice,</em> </strong>for example:</p><p><strong><em>Trainees</em></strong>- needs ReadOnlyAccess</p><p><strong><em>NetworkAdmin</em></strong>- needs AmazonVPCFullAccess</p><p><strong><em>LinuxAdmin</em></strong><em>-</em> needs AmazonEC2FullAccess</p><p><strong><em>DBA- </em></strong>needs AmazonRDSFullAccess</p><p><strong><em>CloudAdmin</em></strong>- needs AdministratorAccess</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yCAHcD-PDLi4g13o3Q3msw.png" /><figcaption>User groups created and assigned required permissions to complete BAU activities</figcaption></figure><p><strong><em>PS:</em></strong> Add <strong><em>IAMUserChangePassword</em></strong> to all user groups so that the users added in these groups are able to reset the passwords, as and when, password expiry date approaches near.</p><p>3. Open <strong><em>AWS CloudShell</em></strong> for execution of the<strong><em> automation script</em></strong> to create 100+ users, mentioned in csv, directly in AWS IAM Users console without any manual efforts. This script, not only, <strong><em>creates user</em></strong>, but also, <strong><em>creates UserLoginProfile</em></strong> with the password included in the sheet( which user will have to change upon first login as “PasswordResetRequired” = true in script) and <strong><em>adds users to respective user groups</em></strong> mentioned after their names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*IoRh_d6PE1Iw8-znDKSctA.png" /><figcaption>Running the automation script</figcaption></figure><p>4. Check in AWS IAM Users console to witness successful completion of tasks mentioned in the automation script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*B0EkeLBXHDgrt3soq_DGrA.png" /><figcaption>Successful creation of users and assignment to respective User Groups in AWS</figcaption></figure><p>Whenever new users login into AWS console using <strong><em>Sign-in URL for IAM users in this account</em></strong>, AWS will instantly prompt to reset the password (must comply with <strong><em>Password Policy</em></strong> set by admin of that account).</p><p>5. To implement another security best practice, create a new policy: <strong><em>EnforceMFAPolicy</em></strong> to force MFA implementation by all users in order to access AWS services and add this policy to all the above created user groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*RoaSVGCJW_SG84jwtDqneA.png" /><figcaption>Implementation of MFA can be enforced by IAM policy for all users</figcaption></figure><p><strong>Conclusion:</strong></p><p><strong><em>Automate wherever possible: </em></strong>Learn any one scripting language.</p><p><strong><em>Use Security Best Practices while using IAM:</em></strong> To use AWS services, you must grant your users and applications access to resources in your AWS accounts. As you run more workloads on AWS, you need robust identity management and permissions in place to ensure that the right people have access to the right resources under the right conditions. AWS offers a large selection of capabilities to help you manage your human and machine identities and their permissions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bee26c524ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>