Skip to content

Joseph-T-Gordon

A complete log of all recent projects and skills

Menu
  • About me
  • Posts/Projects
  • Resume/Certifications
Menu

Post #74 (AWS) – Assigning roles to EC2 instances

Posted on July 22, 2023July 22, 2023 by admin

Let’s say you create a new EC2 instance and you want to be able to read users in IAM from there with

aws iam list-users

However this command will fair as the instance does not have the permission. All you need to do is create a role in IAM, assign the appropriate permission, in this case IAM Read Only and then attach the role to the instance. Just be sure to follow the principle of least privilege.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© 2025 Joseph-T-Gordon | Powered by Minimalist Blog WordPress Theme