From the course: AWS Essential Training for Developers
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
IAM roles for EC2 - Amazon Web Services (AWS) Tutorial
From the course: AWS Essential Training for Developers
IAM roles for EC2
- Do you remember that I said not to place your access keys directly into a server? (key plops) Well, to get my code to work, I put my access key with all of its administrative permissions directly onto our test server, but now my access key could be compromised if anything ever happens to this server. So, how do I prevent this key from getting stolen? IAM, or Identity Access Management, has a feature called Roles. By creating an IAM Role, I can tell AWS what permissions this EC2 instance has. In our example, I can use a role to grant read and write permissions to my S3 buckets and apply that role to my instances. Since this role is a property of the instance, it's like the instance type. There's no keys or passwords on the server that can now be stolen. Let's create a new role from our EC2 instance and fix our code. AWS console, in the Services menu, type IAM and click on the IAM entry. On the left-hand sub…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Hard drives with Elastic Block Store (EBS)4m 58s
-
(Locked)
Storing passwords with Secrets Manager3m 26s
-
(Locked)
NAS with Elastic File System (EFS)3m 18s
-
(Locked)
Web storage with Simple Storage Service (S3)2m 53s
-
(Locked)
Uploading a file to S3 from the AWS CLI9m 10s
-
(Locked)
IAM roles for EC23m 53s
-
(Locked)
Using the SDK to create a file within S33m 7s
-
(Locked)
Putting together all of the IAM resources3m 49s
-
(Locked)
Long-term storage with S3 Glacier4m 2s
-
(Locked)
Serving content faster with CloudFront5m 45s
-
-
-
-
-
-
-
-
-