If you create a custom EMR role for EC2 follow the basic work flow which

If you create a custom emr role for ec2 follow the

This preview shows page 201 - 203 out of 395 pages.

If you create a custom EMR role for EC2, follow the basic work flow, which automatically creates an instance profile of the same name. Amazon EC2 allows you to create instance profiles and roles with different names, but Amazon EMR does not support this configuration, and it results in an "invalid instance profile" error when you create the cluster. Important Inline policies are not automatically updated when service requirements change. If you create and attach inline policies, be aware that service updates might occur that suddenly cause permissions errors. For more information, see Managed Policies and Inline Policies in the IAM User Guide and Specify Custom IAM Roles When You Create a Cluster (p. 195) . For more information about working with IAM roles, see the following topics in the IAM User Guide : Creating a Role to Delegate Permissions to an AWS Service Modifying a Role Deleting a Role Specify Custom IAM Roles When You Create a Cluster You specify the service role for Amazon EMR and the role for the Amazon EC2 instance profile when you create a cluster. The user who is creating clusters needs permissions to retrieve and assign roles to Amazon EMR and EC2 instances. Otherwise, a User account is not authorized to call EC2 error occurs. For more information, see Allow Users and Groups to Create and Modify Roles (p. 202) . Use the Console to Specify Custom Roles When you create a cluster, you can specify a custom service role for Amazon EMR, a custom role for the EC2 instance profile, and a custom Auto Scaling role using Advanced options . When you use Quick options , the default service role and the default role for the EC2 instance profile are specified. For more information, see IAM Service Roles Used By Amazon EMR (p. 181) . To specify custom IAM roles using the console 1. Open the Amazon EMR console at . 195
Image of page 201
Amazon EMR Management Guide Configure Service Roles for Amazon EMR 2. Choose Create cluster , Go to advanced options . 3. Choose the cluster settings appropriate for your application until you reach Security Options . Under Permissions , the Default roles for Amazon EMR are selected. 4. Choose Custom . 5. For each role type, select a role from the list. Only roles within your account that have the appropriate trust policy for that role type are listed. 6. Choose other options as appropriate for your cluster and then choose Create Cluster . Use the AWS CLI to Specify Custom Roles You can specify a service role for EMR and a service role for cluster EC2 instances explicitly using options with the create-cluster command from the AWS CLI. Use the --service-role option to specify the service role. Use the InstanceProfile argument of the --ec2-attributes option to specify the role for the EC2 instance profile.
Image of page 202
Image of page 203

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