From c5146f5dc866a8215185a17d43251e64b7d49f74 Mon Sep 17 00:00:00 2001 From: nzdjb Date: Sun, 23 Oct 2022 09:24:08 +1300 Subject: [PATCH] feat: Explain ec2:AssociateIamInstanceProfile Add explanation for ec2:AssociateIamInstanceProfile. Also, fix a typo. --- Methodology and Resources/Cloud - AWS Pentest.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Methodology and Resources/Cloud - AWS Pentest.md b/Methodology and Resources/Cloud - AWS Pentest.md index b15d9f0..ea47d1a 100644 --- a/Methodology and Resources/Cloud - AWS Pentest.md +++ b/Methodology and Resources/Cloud - AWS Pentest.md @@ -324,9 +324,12 @@ Example : https://awesomeapp.com/forward?target=http://169.254.169.254/latest/me "Resource": "*" ``` -- ec2:AssociateIamInstanceProfile +- **ec2:AssociateIamInstanceProfile** : attach an IAM instance profile to an EC2 instance + ```powershell + aws ec2 associate-iam-instance-profile --iam-instance-profile Name=admin-role --instance-id i-0123456789 + ``` -- **iam:CreateAccessKey**iam:CreateAccessKey : create a new access key to another IAM admin account +- **iam:CreateAccessKey** : create a new access key to another IAM admin account ```powershell aws iam create-access-key –user-name target_user ```