<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Geordi</title>
    <description>The latest articles on DEV Community by Geordi (@geordigeordi).</description>
    <link>https://dev.to/geordigeordi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F389186%2F08e23383-0a2e-4518-90bf-127726632bcc.png</url>
      <title>DEV Community: Geordi</title>
      <link>https://dev.to/geordigeordi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/geordigeordi"/>
    <language>en</language>
    <item>
      <title>Let's Learn 📚: AWS Identity and Access Management</title>
      <dc:creator>Geordi</dc:creator>
      <pubDate>Thu, 21 May 2020 12:59:05 +0000</pubDate>
      <link>https://dev.to/geordigeordi/let-s-learn-aws-identity-and-access-management-55bc</link>
      <guid>https://dev.to/geordigeordi/let-s-learn-aws-identity-and-access-management-55bc</guid>
      <description>&lt;p&gt;&lt;em&gt;Welcome to the first article of a series called 'Let's Learn' that I will be creating to share knowledge around a variety of topics - the first being Amazon Web Services (AWS).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note: This series assumes no prior &lt;em&gt;practical&lt;/em&gt; knowledge of AWS - for an overview of what AWS is you can get started &lt;a href="https://aws.amazon.com/what-is-aws/"&gt;here&lt;/a&gt;. We will use the AWS free tier for this series - but be mindful that not all services are within the free tier and can incur costs if not careful.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Identity and Access Management (IAM) as an Individual User 👤
&lt;/h2&gt;

&lt;p&gt;Amazon Web Services (AWS) Identity and Access Management (IAM) system provides a security blanket for individuals and organisations - enabling them to set boundaries to what is accessible, and what privileges they have within the context of AWS and the services it provides.&lt;/p&gt;

&lt;p&gt;Previously organisations or individuals may have shared private credentials such as an admin password for their services through email, phone, instant messaging or other mode of communication which is unsecure therefore a risk. With IAM, organisations and individuals can be confident in who, what, and how users interact with the services tied to their organisation or themselves.&lt;/p&gt;

&lt;p&gt;Since AWS can be used in both &lt;strong&gt;global&lt;/strong&gt; and &lt;strong&gt;regional&lt;/strong&gt; contexts (learn more about regions &lt;a href="https://aws.amazon.com/about-aws/global-infrastructure/regions_az/"&gt;here&lt;/a&gt;) - it’s good to note that IAM is a global service (not tied to a specific region) which enables users to control AWS services across all regions -  kind of like an umbrella covering all available services that controls the users access rights. This allows these access rights to be propagated across all AWS services. This will become clearer in practice, but for now understanding that the ability to create, remove and change services is configured in a global context.&lt;/p&gt;

&lt;p&gt;We will learn about &lt;strong&gt;users&lt;/strong&gt; and &lt;strong&gt;groups&lt;/strong&gt; within the IAM service. Note that the instructions do not contain screenshots as it’s good to familiarise yourself with the AWS console layout.&lt;/p&gt;

&lt;p&gt;First we have to sign up for an &lt;strong&gt;AWS free tier account&lt;/strong&gt; if you don’t already have one. You can do that &lt;a href="https://portal.aws.amazon.com/billing/signup#/start"&gt;here&lt;/a&gt;. Once you are signed up - Search for the &lt;strong&gt;IAM&lt;/strong&gt; service, which will bring you to the IAM dashboard. You will notice the Security Status steps with warning icons - nothing to fear! We will work through these to ensure our IAM service meets the security needs AWS sets.&lt;/p&gt;

&lt;p&gt;Let’s begin by working through the following steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step One:&lt;/strong&gt; &lt;strong&gt;Activate Multi Factor Authentication (MFA)&lt;/strong&gt; 🔐&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is a common step of securing most types of accounts, and you can learn more about MFA specifically &lt;a href="http://docs.aws.amazon.com/console/iam/security-status-activate-mfa"&gt;here&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step Two:&lt;/strong&gt; &lt;strong&gt;Create an individual IAM user&lt;/strong&gt; 👤&lt;br&gt;
  Guidelines surrounding IAM users:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We should never use our root account (the account level set when we first sign up) to interact with AWS - so creating a user (which will be yourself) will avoid potential risks related to the root user privileges a default AWS account has&lt;/li&gt;
&lt;li&gt;Use one IAM user per physical person - avoid the sharing of account credentials and access by assigning each physical user to a IAM user&lt;/li&gt;
&lt;li&gt;Never store IAM credentials in code, or other unsecure places. This will ensure the safety of your services and resources in AWS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Creating the user&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;The user in this context will be ourselves. In an organisation this could be&lt;br&gt;
another developer, manager or other role.&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click '&lt;strong&gt;Add User&lt;/strong&gt;'&lt;/li&gt;
&lt;li&gt;Enter a username for this user &lt;em&gt;(This is how the user will be identified within AWS and for logging in)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Select the Access Type for the user - For our use case select &lt;strong&gt;AWS Management Console&lt;/strong&gt; access - This will enable the user to login to the console and control services they have permissions for.&lt;/li&gt;
&lt;li&gt;Choose to use an &lt;strong&gt;auto-generated&lt;/strong&gt; or &lt;strong&gt;custom password&lt;/strong&gt; &lt;em&gt;(Either works as an individual user, or adding another user - in the case you are adding another user you will need to communicate this to them)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Select '&lt;strong&gt;Require Password reset&lt;/strong&gt;' - This is a great safety measure for users to create and confirm their own password once they login to access the AWS console&lt;/li&gt;
&lt;li&gt;Click '&lt;strong&gt;Next: Permissions&lt;/strong&gt;'&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Adding the permissions&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;What each user is able to access and configure within AWS&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Guidelines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Best practice is to use groups for &lt;strong&gt;all&lt;/strong&gt; users - These could be company specific functions such as Engineering and Design, or more role specific such as Development, DevOps, Admins etc&lt;/li&gt;
&lt;li&gt;It’s best to give the user the &lt;em&gt;least&lt;/em&gt; amount of permissions to perform the tasks needed - for example a developer in a team may need to be able to &lt;em&gt;create&lt;/em&gt;, &lt;em&gt;remove&lt;/em&gt; or &lt;em&gt;modify&lt;/em&gt; servers or storage settings - but they do not need access to the billing dashboard - this is at the discretion of the user creating others
&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Select the appropriate permissions '&lt;strong&gt;Add user to a group&lt;/strong&gt;'&lt;/li&gt;
&lt;li&gt;Click '&lt;strong&gt;Create group&lt;/strong&gt;' and give it a name - In this case let’s call it admin&lt;/li&gt;
&lt;li&gt;Add a permission policy - which is a defined set of boundaries on actions the user can perform. An admin could have full access to the AWS services and resources, so we will select &lt;strong&gt;AdministratorAccess&lt;/strong&gt; policy - An organisation may choose to use differing policies for user types, or create their own. Users &lt;strong&gt;automatically&lt;/strong&gt; get the &lt;strong&gt;IAMUserChangePassword&lt;/strong&gt; policy to allow them to change their own password&lt;/li&gt;
&lt;li&gt;Create a tag for the user - this is a key value pair which allows you to describe the role or other information for the user. This is optional but often good to differentiate users.&lt;/li&gt;
&lt;li&gt;Review the settings and click '&lt;strong&gt;Create User&lt;/strong&gt;'&lt;/li&gt;
&lt;li&gt;You should see a success screen with the options to download the user credentials as a CSV file, or send an email to the user with their login credentials - The password will have to be provided to them separately in a &lt;em&gt;secure&lt;/em&gt; manner. As we have created our own password earlier when creating the user - this will be used to login the first time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step Three:&lt;/strong&gt; &lt;strong&gt;Use groups to assign permissions&lt;/strong&gt; 👥&lt;br&gt;
&lt;em&gt;Assign permissions to your IAM users&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This has been completed in the previous step when creating a group for the user. The created user should be part of the group&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step Four:&lt;/strong&gt; &lt;strong&gt;Apply an IAM password policy&lt;/strong&gt; 🔏&lt;br&gt;
&lt;em&gt;Ensure all users create a strong password and configure if these should be changed, and how often&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is personal preference - you can decide the criteria a user has to fulfil to have a strong password. This is optional but highly recommended. &lt;a href="https://www.it.ucsb.edu/password-best-practices"&gt;Here&lt;/a&gt; are some tips for a more secure password&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step Five:&lt;/strong&gt; &lt;strong&gt;Rotate Access keys&lt;/strong&gt; 🔑&lt;br&gt;
&lt;em&gt;Access keys are used to interact with the AWS Application Programming Interface (API)&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is out of scope for this tutorial but it is good to know that it is recommended that these should be changed &lt;strong&gt;yearly&lt;/strong&gt; and unused keys &lt;strong&gt;should be removed&lt;/strong&gt; to reduce the risk of exposure of your AWS services&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;If you have completed the steps above and have created a user in IAM, &lt;strong&gt;congratulations!&lt;/strong&gt; 🎉🥳 Awesome stuff - Often the biggest barrier to learning the unknown is starting - and you have taken that first step. If you are stuck, or need help in any way - reach out in the comments section below or tweet me &lt;a href="https://twitter.com/geordidearns"&gt;@geordidearns&lt;/a&gt; and i’ll be super happy to help you solve the issues you have 😄 - Note the additional resources below to help you dig a little deeper or have another take on what we have achieved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/iam/getting-started"&gt;More on IAM with use cases&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
