From the course: Complete Guide to AWS Security and Compliance Management

Unlock this course with a free trial

Join today to access over 25,900 courses taught by industry experts.

Leveraging S3 IAM policies in EC2

Leveraging S3 IAM policies in EC2

- [Instructor] Let's take that custom IAM policy one step further. In addition to assigning that policy to the business analysts group, I've also assigned it to a role which I've associated with an EC2 instance. To test it out, let's navigate to the EC2 dashboard. Here, I already have my Generate Customer Output server selected. As we can see, there's an IAM role attached called BA-S3-server-role. Let's quickly validate the permissions for that role by clicking the IAM role link. That pops open a new browser tab. Here, I can see from a permissions policy standpoint, the only policy that's attached is the BA-S3 customer list, put outbound policy, that's the same policy that's assigned to the business analyst group. Closing the IAM tab brings me back to the instances page. With this policy attached to the role assigned to this server, I can mimic Julia's access from a programmatic standpoint. I'm going to go ahead and connect to this instance in the browser. Clicking the connect button,…

Contents