Updating Trust Policies for Assume Role Permissions Each role that EMRFS uses

Updating trust policies for assume role permissions

This preview shows page 204 - 206 out of 395 pages.

Updating Trust Policies for Assume Role Permissions Each role that EMRFS uses must have a trust policy that allows the cluster's EMR role for EC2 to assume it. Similarly, the cluster's EMR role for EC2 must have a trust policy that allows EMRFS roles to assume it. The following example trust policy is attached to roles for EMRFS. The statement allows the default EMR role for EC2 to assume the role. For example, if you have two fictitious EMRFS roles, EMRFSRole_First and EMRFSRole_Second , this policy statement is added to the trust policies for each of them. { "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Principal":{ "AWS":"arn:aws:iam:: AWSAcctID :role/EMR_EC2_DefaultRole" }, "Action":"sts:AssumeRole" } ] } In addition, the following example trust policy statement is added to the EMR_EC2_DefaultRole to allow the two fictitious EMRFS roles to assume it. { "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Principal":{ "AWS": ["arn:aws:iam:: AWSAcctID :role/ EMRFSRole_First ", "arn:aws:iam:: AWSAcctID :role/ EMRFSRole_Second "] }, "Action":"sts:AssumeRole" } ] } To update the trust policy of an IAM role Open the IAM console at . 1. Choose Roles , enter the name of the role in Search , and then select its Role name . 2. Choose Trust relationships , Edit trust relationship . 3. Add a trust statement according to the Policy Document according to the guidelines above, and then choose Update Trust Policy . 198
Image of page 204
Amazon EMR Management Guide Configure Service Roles for Amazon EMR Specifying a Role as a Key User If a role allows access to a location in Amazon S3 that is encrypted using an AWS Key Management Service customer master key (CMK), make sure that the role is specified as a key user. This gives the role permission to use the CMK. For more information, see Using Key Policies in the AWS Key Management Service Developer Guide . Set Up a Security Configuration with IAM Roles for EMRFS Important If none of the IAM roles for EMRFS that you specify apply, EMRFS falls back to the EMR role for EC2. Consider customizing this role to restrict permissions to Amazon S3 as appropriate for your application and then specifying this custom role instead of EMR_EC2_DefaultRole when you create a cluster. For more information, see Customize IAM Roles (p. 195) and Specify Custom IAM Roles When You Create a Cluster (p. 195) . To specify IAM roles for EMRFS requests to Amazon S3 using the console 1. Create a security configuration that specifies role mappings: a. In the Amazon EMR console, select Security configurations , Create . b. Type a Name for the security configuration. You use this name to specify the security configuration when you create a cluster. c. Choose Use IAM roles for EMRFS requests to Amazon S3 . d. Select an IAM role to apply, and under Basis for access select an identifier type ( Users , Groups , or S3 prefixes ) from the list and enter corresponding identifiers. If you use multiple identifiers, separate them with a comma and no space. For more information about each identifier type, see the JSON configuration reference (p. 199) below.
Image of page 205
Image of page 206

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors