192 Amazon EMR Management Guide Configure Service Roles for Amazon EMR Cleaning

192 amazon emr management guide configure service

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

Image of page 198
Amazon EMR Management Guide Configure Service Roles for Amazon EMR Cleaning Up a Service-Linked Role Before you can use IAM to delete a service-linked role, you must first confirm that the role has no active sessions and remove any resources used by the role. To check whether the service-linked role has an active session in the IAM console 1. Open the IAM console at . 2. In the navigation pane, choose Roles . Select the name (not the check box) of the AWSServiceRoleForEMRCleanup role. 3. On the Summary page for the selected role, choose Access Advisor . 4. On the Access Advisor tab, review the recent activity for the service-linked role. Note If you are unsure whether Amazon EMR is using the AWSServiceRoleForEMRCleanup role, you can try to delete the role. If the service is using the role, then the deletion fails and you can view the regions where the role is being used. If the role is being used, then you must wait for the session to end before you can delete the role. You cannot revoke the session for a service-linked role. To remove Amazon EMR resources used by the AWSServiceRoleForEMRCleanup Terminate all clusters in your account. For more information, see Terminate a Cluster (p. 326) . Deleting a Service-Linked Role (IAM Console) You can use the IAM console to delete a service-linked role. To delete a service-linked role (console) 1. Open the IAM console at . 2. In the navigation pane, choose Roles . Select the check box next to AWSServiceRoleForEMRCleanup, not the name or row itself. 3. For Role actions at the top of the page, choose Delete role . 4. In the confirmation dialog box, review the service last accessed data, which shows when each of the selected roles last accessed an AWS service. This helps you to confirm whether the role is currently active. To proceed, choose Yes, Delete . 5. Watch the IAM console notifications to monitor the progress of the service-linked role deletion. Because the IAM service-linked role deletion is asynchronous, after you submit the role for deletion, the deletion task can succeed or fail. If the task fails, you can choose View details or View Resources from the notifications to learn why the deletion failed. If the deletion fails because there are resources in the service that are being used by the role, then the reason for the failure includes a list of resources. Deleting a Service-Linked Role (IAM CLI) You can use IAM commands from the AWS Command Line Interface to delete a service-linked role. Because a service-linked role cannot be deleted if it is being used or has associated resources, you must submit a deletion request. If these conditions are not met, that request can be denied. To delete a service-linked role (CLI) 1. To check the status of the deletion task, you must capture the deletion-task-id from the response. Type the following command to submit a service-linked role deletion request: 193
Image of page 199
Amazon EMR Management Guide Configure Service Roles for Amazon EMR $ aws iam delete-service-linked-role
Image of page 200
Image of page 201

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