How to Switch Roles in the AWS Management Console | AWS IAM Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 30

  • @TinyTechnicalTutorials
    @TinyTechnicalTutorials  2 года назад +2

    What else do you want to learn in AWS? Let me know below in the comments!

    • @vukdjunisijevic173
      @vukdjunisijevic173 Год назад

      I am trying to create a table from data loaded on s3. I am using glue. I already created IAM user. Then I created role with AmazonS3FullAccess and AWSGlueServiceRole. I also added policy to user according to your tutorial suing JSON {
      "Version": "2012-10-17",
      "Statement": {
      "Effect": "Allow",
      "Action": "sts:AssumeRole",
      "Resource": "arn:aws:iam::myaccountid:role/de-on-youtube-role-glue-s3"
      }
      } And Still when I try to create crawler I am not able it says Account (than my account Id) is denied access. Can you please advice? I am in base (trial version) trying to learn basics, so I do not have AWS support. Thank you!

  • @yalvar
    @yalvar 2 года назад +3

    Very good point showcasing that an IAM user has to have specific permissions just to assume a role. Not everybody explains this which is mandatory to being able to assume a role.

  • @0shawhat
    @0shawhat Год назад +1

    Brushing up on my IAM knowledge and I appreciate the way you presented, easy and digestible to follow along! Thank you so much :D you are severely underrated

  • @hazelnisa5483
    @hazelnisa5483 Год назад +1

    Easily explained, no nonsense. Saved time.❤❤

  • @JoshPeak
    @JoshPeak Год назад

    This is a perfect snippet I needed to visually explain to a colleague this concept. Thank you!

  • @srini580
    @srini580 2 года назад

    Many thanks for the video, at last, I learned this concept.

  • @adetayoalao8353
    @adetayoalao8353 Год назад

    you are the best

  • @ronaldfarnig8012
    @ronaldfarnig8012 2 года назад +1

    Could you provide any use cases where you should use switch role rather than just adding permission directly to the IAM user?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 года назад +4

      Hi Ronald! It's a good question! Generally, roles are used when someone (or something) only needs temporary credentials to do something. If a user needs to take some action every day, it would be better to just give them those permissions (preferably by assigning the permissions to whatever group(s) they're in). It's actually more common to use roles with other AWS services (instead of IAM users), such as giving temporary permissions to an EC2 instance. There are a few other use cases explained lower on this page, if it helps: docs.aws.amazon.com/IAM/latest/UserGuide/id.html.

  • @praveensequeira1525
    @praveensequeira1525 Год назад +1

    Can we achieve the SAME ie allow this user the admin permission, by specifying his user arn in the trust policy of the role and just allowing sts:AssumeRole action in IAM policy attached to the user? Would that be right? Thank you in advance for answering 😊 😊😊

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Год назад

      Hi Praveen! 😊 Sorry for the delayed response. Yes, that should achieve the same thing. Here's an example that's sort of similar to what you're saying: docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user.html

    • @praveensequeira1525
      @praveensequeira1525 Год назад

      @@TinyTechnicalTutorials thank you 🙏

  • @shyamreddy9701
    @shyamreddy9701 Год назад +1

    method 1:
    Not using roles.
    And Controlling access by attaching policies to directly to user groups.
    method 2:
    Controlling access by creating roles(with relevant policies attached).
    And these roles will be assumed by users.
    Which is best in real time projects ?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Год назад

      Hi Shyam! Generally speaking, it's better to use roles so that credentials are only temporary. This is actually considered a best practice by AWS. Here's a full list of other security best practices: docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html.

  • @AkaluWeldetsadik-n9o
    @AkaluWeldetsadik-n9o Год назад

    thank you easly understandable

  • @repeter8261
    @repeter8261 Год назад +1

    Is it okey to show AccountId and Account alias?
    I'm just curious :)

  • @sarurajendran5762
    @sarurajendran5762 Год назад +1

    Hi I have done the same but if i click switch roles in IAM user Its refreshing nothing is happening

    • @sarurajendran5762
      @sarurajendran5762 Год назад +1

      someone facing this issue please activate IAM User and Role Access to Billing Information so that it will work.Thanks!

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Год назад +1

      Thanks for the update, Saru! Hopefully this helps someone else! 🙏

  • @StanislavSmirnov-k1o
    @StanislavSmirnov-k1o Год назад

    искал медь (copper), а нашеле золото (gold)