{"id":1175,"date":"2022-06-07T11:09:13","date_gmt":"2022-06-07T11:09:13","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=1175"},"modified":"2023-08-07T08:50:12","modified_gmt":"2023-08-07T08:50:12","slug":"iam-user","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/iam-user","title":{"rendered":"How to create an IAM user"},"content":{"rendered":"<p><strong>Identity and Access Management (IAM)\u00a0<\/strong>is an <a href=\"https:\/\/www.checkmateq.com\/aws-cloud\">AWS cloud service<\/a> that allows you to <strong>manage access<\/strong> to other AWS cloud services in a <strong>secure manner<\/strong>. Using Identity and Access Management we can manage who is <strong>authenticated<\/strong> (signed in) and allowed (granted permissions) to<strong> access resources<\/strong>.<\/p>\n<p><strong>AWS cloud IAM Identities(users, user groups, and roles):<\/strong><\/p>\n<p>IAM identity provides access to the AWS account. These identities can be created by the AWS account root user or an IAM administrator for the account. A root user has access to all AWS services and resources and it gets created when we create our AWS account.<\/p>\n<p><strong>IAM users<\/strong> are entities that represent the person or application that interacts with AWS. In AWS, name, and credentials are required to define a user.<\/p>\n<p>The term &#8220;<strong>IAM user group<\/strong>&#8221; refers to a group of IAM users. These user groups allow you to specify permissions for many users, thus making it easier to manage those users&#8217; permissions.<\/p>\n<p>A specific permissioned IAM identity that you can create in your account is called an <strong>IAM role<\/strong>. In the same way that an IAM user is an AWS identity, an IAM role is an AWS identity with authorization policies that define what the identity can and cannot do in AWS. A role, on the other hand, is intended to be assumed by anyone who needs it, rather than being tied to a single individual.<\/p>\n<h3><strong>Steps to create an IAM user:<\/strong><\/h3>\n<p><strong>We will be creating a user who would have access to only a particular folder in an s3 bucket.<\/strong><\/p>\n<ul>\n<li>Login to your AWS account and go to the Identity and Access Management dashboard.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1178\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-143443-300x103.png\" alt=\"\" width=\"746\" height=\"256\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-143443-300x103.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-143443-1024x352.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-143443-768x264.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-143443-1536x528.png 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-143443-1200x413.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-143443.png 1597w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Go to <strong>Users-&gt;Add Users<\/strong>.<\/li>\n<li>Write the user name and select <strong>credential type<\/strong>.<\/li>\n<li>If you want to give command-line access to the user select <strong class=\"ng-scope\"><span class=\"ng-scope\">Access key &#8211; Programmatic access\u00a0<\/span><\/strong><span class=\"ng-scope\">and if you want to give console access select <strong class=\"ng-scope\">Password &#8211; AWS Management Console access<\/strong>. We can select both as well.<\/span><\/li>\n<li>For the console access either create a custom password or select autogenerated. Then select <strong>require password reset\u00a0<\/strong>if you want the user to create a new password at sign-in.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1180\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-145902-300x145.png\" alt=\"\" width=\"739\" height=\"357\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-145902-300x145.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-145902-1024x493.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-145902-768x370.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-145902-1536x740.png 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-145902-1200x578.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-145902.png 1557w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Click on <strong>Next: Permissions<\/strong>.<\/li>\n<li>After that Select <strong>attach existing policies-&gt;Create Policy<\/strong>. A new tab will open.<\/li>\n<li>Copy and paste the following code. This policy allows access to a folder &#8220;t1d&#8221; in the &#8220;chkmt-test-bucket&#8221; bucket. Replace the bucket and folder name and add or remove actions according to use case.<\/li>\n<\/ul>\n<pre>{\r\n   \"Version\": \"2012-10-17\",\r\n   \"Statement\": [\r\n      {\r\n         \"Sid\": \"AllowUserToSeeBucketList\",\r\n         \"Effect\": \"Allow\",\r\n         \"Action\": [\r\n         \"s3:GetBucketLocation\",\r\n         \"s3:ListAllMyBuckets\"\r\n         ],\r\n         \"Resource\": \"arn:aws:s3:::*\"\r\n     },\r\n     {\r\n         \"Sid\": \"VisualEditor1\",\r\n         \"Effect\": \"Allow\",\r\n         \"Action\": [\r\n               \"s3:PutObject\",\r\n               \"s3:GetObject\",\r\n               \"s3:AbortMultipartUpload\",\r\n               \"s3:DeleteObject\",\r\n               \"s3:GetObjectVersion\",\r\n               \"s3:ListMultipartUploadParts\"\r\n                ],\r\n               \"Resource\": \"arn:aws:s3:::chkmt-test-bucket\/t1d\/*\"\r\n      },\r\n      {\r\n        \"Sid\": \"AllowListingOfTestBucket\",\r\n        \"Effect\": \"Allow\",\r\n        \"Action\": \"s3:ListBucket\",\r\n        \"Resource\": \"arn:aws:s3:::chkmt-test-bucket\",\r\n        \"Condition\": {\r\n                  \"StringLike\": {\r\n                      \"s3:prefix\": [\r\n                                      \"\",\r\n                                      \"t1d\/*\"\r\n                                    ]\r\n                                 }\r\n                       }\r\n        }\r\n   ]\r\n}\r\n<\/pre>\n<ul>\n<li>Click on<strong> Next:Tags<\/strong>. Add tags and then click on <strong>Next:Review<\/strong>.<\/li>\n<li>Give name and description and click on<strong> create policy<\/strong>.<\/li>\n<li>After that go to add the user tab and select the policy that we have created.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1184\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155349-300x99.png\" alt=\"\" width=\"742\" height=\"245\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155349-300x99.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155349-1024x337.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155349-768x253.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155349-1536x506.png 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155349-1200x395.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155349.png 1606w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Add tags and then click on create user.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1185\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155458-300x137.png\" alt=\"\" width=\"727\" height=\"332\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155458-300x137.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155458-1024x467.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155458-768x350.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155458-1536x700.png 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155458-1200x547.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155458.png 1540w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Share the access id and access key to the user for command-line access and the password for console access.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1186\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155732-300x55.png\" alt=\"\" width=\"742\" height=\"136\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155732-300x55.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155732-1024x189.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155732-768x142.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155732-1200x221.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-2022-06-07-155732.png 1518w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><a href=\"https:\/\/www.checkmateq.com\/contact-us\">Please contact<\/a> our technical consultants if you would like to discuss any issue related to cloud DevOps infrastructure or <a href=\"https:\/\/www.checkmateq.com\/full-stack-development\">software development<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Identity and Access Management (IAM)\u00a0is an AWS cloud service that allows you to manage access to other AWS cloud services in a secure manner. Using Identity and Access Management we can manage who is authenticated (signed in) and allowed (granted permissions) to access resources. AWS cloud IAM Identities(users, user groups, and roles): IAM identity provides &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/iam-user\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to create an IAM user&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":1191,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[15,3,2,7,11,23,14,6],"_links":{"self":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1175"}],"collection":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/comments?post=1175"}],"version-history":[{"count":14,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1175\/revisions"}],"predecessor-version":[{"id":4321,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/1175\/revisions\/4321"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media\/1191"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=1175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=1175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}