Skip to content

Commit

Permalink
Patch 384 (#406)
Browse files Browse the repository at this point in the history
* Update instance-iam-role.md

* Update step2.png

Updated image in step 2

* Update step3.png

Updated image in step 3

* Update step4.png

Updated image in step 4

* Update instance-iam-role.md

Updated step 4

* Update step5.png

Updated image in step 5

* Update instance-iam-role.md

Updated step 5

* Update step7.png

Updated image in step 7

* Update step8.png

Updated image for step 8

* Update step9.png

Updated image for step 9

* Update step10.png

Updated image for step 10

* Update step11.png

Updated image for step 11

* Update step11.png

Updated image for step 11

* Update step12.png

Updated image for step 12

* Update step13.png

Updated image for step 13

* Update step14.png

Updated image for step 14

* Update step15.png

Updated image for step 15

* Update instance-iam-role.md

Updated step 15

* Update step16.png

Updated image for step 16

* Update step18.png

Updated image for step 18

* Update step17.png

Updated image for step 17

* Update step17.png

Updated Image for step 17

* Update step18.png

Updated Image for step 18

* Apply suggestions from code review

Co-authored-by: alphadev4 <[email protected]>
  • Loading branch information
shuklaalok87 and alphadev4 authored Nov 2, 2022
1 parent 382751e commit 9fc15cb
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions en/aws/ec2/instance-iam-role.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
| **Recommended Action** | Attach an IAM role to the EC2 instance |

## Detailed Remediation Steps
1. Log into the AWS Management Console.
1. Log in to the AWS Management Console.
2. Select the "Services" option and search for EC2. </br> <img src="/resources/aws/ec2/instance-iam-role/step2.png"/>
3. Scroll down the left navigation panel and choose "Instances". </br> <img src="/resources/aws/ec2/instance-iam-role/step3.png"/>
4. Select the "EC2 Instance" that needs to be verified and scroll down and click on the "Description" tab. </br> <img src="/resources/aws/ec2/instance-iam-role/step4.png"/>
5. On the "Description" tab scroll down and check for "IAM role" attribute value. If no value has assigned then the selected "EC2 Instance" has no "IAM role" assigned. </br> <img src="/resources/aws/ec2/instance-iam-role/step5.png"/>
4. Select the "EC2 Instance" that needs to be verified, scroll down and click on the "Details" tab. </br> <img src="/resources/aws/ec2/instance-iam-role/step4.png"/>
5. On the "Details" tab scroll down and check for "IAM role" attribute value. If no value has been assigned then the selected "EC2 Instance" has no "IAM role" assigned. </br> <img src="/resources/aws/ec2/instance-iam-role/step5.png"/>
6. Repeat steps number 2 - 5 to cross check other "EC2 Instances" in the selected AWS region.</br>
7. Navigate to "IAM" dashboard using the "Services" option.</br> <img src="/resources/aws/ec2/instance-iam-role/step7.png"/>
8. Scroll down the left panel and choose "Roles".</br> <img src="/resources/aws/ec2/instance-iam-role/step8.png"/>
9. On the "Roles" page click on the "Create Role" button to create a new "IAM role".</br> <img src="/resources/aws/ec2/instance-iam-role/step9.png"/>
10. On the "Create Role" page choose the "AWS service", choose "EC2" and click on the "Next,Permission" button at the bottom. </br> <img src="/resources/aws/ec2/instance-iam-role/step10.png"/>
11. On a "Attach permissions policies" page search for "AmazonEC2FullAccess" policy from the "Filter policies" search bar which provides full access to all AWS EC2 services and resources. Click on the "Next:Tags" button to continue. </br> <img src="/resources/aws/ec2/instance-iam-role/step11.png"/>
12. On the "Add tags" provide a "Key" and "value" which can help to organize, track, or control access for the selected "IAM role". Click on the "Next:Review" button to continue the process. </br> <img src="/resources/aws/ec2/instance-iam-role/step12.png"/>
12. On the "Add tags" provide a "Key" and "Value" which can help to organize, track, or control access for the selected "IAM role". Click on the "Next: Review" button to continue the process. </br> <img src="/resources/aws/ec2/instance-iam-role/step12.png"/>
13. Provide a "Role name" and click on the "Create role" button to create the selected "IAM role".</br> <img src="/resources/aws/ec2/instance-iam-role/step13.png"/>
14. Navigate to "EC2" dashboard and select the "EC2 Instance" on which we need to attach the "IAM role".</br> <img src="/resources/aws/ec2/instance-iam-role/step14.png"/>
15. Click on the "Actions" button at the top to create an "Amazon Machine Image" of the selected "EC2 Instance". Click on the "Image" option under "Actions" dropdown menu and click on the "Create Image".</br> <img src="/resources/aws/ec2/instance-iam-role/step15.png"/>
15. Click on the "Actions" button at the top to create an "Amazon Machine Image" of the selected "EC2 Instance". Click on the "Image and templates" option under "Actions" dropdown menu and click on the "Create Image".</br> <img src="/resources/aws/ec2/instance-iam-role/step15.png"/>
16. On the "Create Image" dialog box provide a "Image Name" and "Image Description". Click on the "Create Image" button at the bottom to create the "Amazon Machine Image" of the selected "EC2 Instance".</br> <img src="/resources/aws/ec2/instance-iam-role/step16.png"/>
17. Once the "Amazon Machine Image" is ready click on the "Launch" button to create a new "EC2 Instance" from the image created.</br> <img src="/resources/aws/ec2/instance-iam-role/step17.png"/>
18. On the "Configure Instance Details" page scroll down and choose the newly created "IAM role" from the dropdown menu and click on the "Review and Launch" button to create a new "EC2 Instance" with "IAM role" attached. </br> <img src="/resources/aws/ec2/instance-iam-role/step18.png"/>
Expand Down
Binary file modified resources/aws/ec2/instance-iam-role/step10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/instance-iam-role/step9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9fc15cb

Please sign in to comment.