AWS – IAM Roles

Table Of Contents:

  1. What Is IAM Roles?
  2. How IAM Role Works ?
  3. Example: IAM Role for EC2 to Access S3

(1) What Is An IAM Role?

(2) How IAM Role Works ?

(3) Why We Call It As Assume A Role?

(4) Example: IAM Role for EC2 to Access S3

(3.1) Go to AWS IAM Console → Roles → Create Role.
(3.2) Select Trusted Entity → Choose AWS Service → Select EC2.
(3.3) Attach Policy → Select AmazonS3ReadOnlyAccess.
(3.4) Name the Role → Example: EC2-S3-ReadOnly-Role.

(4) How To Attach Permission To IAM Role For Sagemaker To Access S3 Bucket?

(Step-1) Search For IAM Role In Searchbar
(Step-2) Click On Role In The Left Pannel
(Step-3) Select The Sagemaker Execttion Role
(Step-4) Click On Add Permission Button
(Step-5) Search For AmazonS3FullAccess, Select It & Click On Add Permission
(Step-6) New Policy Has Been Added Successfully

(5) How Can Assume The IAM Role?

(6) Validity Of IAM Role.

Leave a Reply

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