Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
23 views
in Information Technology by (149k points)
What is an IAM Role, and how is it different from an IAM User?

Please log in or register to answer this question.

1 Answer

+1 vote
by (149k points)

An IAM Role is an AWS identity with specific permissions that determine what actions can be performed. Unlike an IAM User, a role does not have long-term credentials such as a password or access keys. Instead, roles are meant to be assumed by trusted entities such as users, applications, or AWS services, which are provided temporary security credentials.

Example Code:

{
    "RoleName": "ExampleRole",
    "AssumeRolePolicyDocument": {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Principal": {
                    "Service": "ec2.amazonaws.com"
                },
                "Action": "sts:AssumeRole"
            }
        ]
    },
    "Description": "An example role for EC2",
    "MaxSessionDuration": 3600
}

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...