AWS Classroom Series – 21/Sept/2021

IAM Roles

  • An IAM Roles is an permission given to the AWS service to access other AWS Services.

  • Scenarios

    • Some cron job running on ec2 to delete some s3 objects
      • We need to give permission to ec2 to access s3 Preview
      • In these kind of scenarios roles help.
      • We can create a role assign some policy to it. Attach role to AWS resource
      • Lets create ec2 instance
      • Now create an IAM role Preview Preview Preview Preview Preview
      • Now lets attach role to ec2 instance Preview Preview Preview
      • Login into ec2 and verify access Preview Preview Preview
    • Access to AWS Lambda to start/stop/manage ec2 and rds instances Preview
      • Here we create a role for Lambda with iam policies to perform operations and attach it to lambda function
    • Access to AWS Services from on-premises Preview
      • Create an IAM user with programmatic access Preview
      • Attach necessary IAM Policy Preview
      • Install AWS CLI on the on-premise vm
      • Configure AWS cli with secret access key & id Preview Preview Preview
  • Best Practice: Use CLI profiles to work with multiple AWS accounts or with different user permissions. Please go through the classroom video

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube