Turning off Resource Explorer in all Amazon Web Services Regions - Amazon Resource Explorer
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Turning off Resource Explorer in all Amazon Web Services Regions

If you want to turn off Amazon Resource Explorer completely, perform the following procedure.

Note

Resource Explorer creates a service linked role named AWSServiceRoleForResourceExplorer in the account when you create an index in the first Amazon Web Services Region for an account. Resource Explorer does not automatically delete this service linked role. After you delete the Resource Explorer index in every Region, you can then use the IAM console to delete the role if you're sure you won't be using Resource Explorer again in the future. If you do delete the role and you then choose to start Resource Explorer in at least one Amazon Web Services Region, Resource Explorer recreates the service-linked role.

Turn off Resource Explorer in all Amazon Web Services Regions

You can turn off Resource Explorer by using the Amazon Web Services Management Console, by using commands in the Amazon Command Line Interface (Amazon CLI), or by using API operations in an Amazon SDK.

Amazon Web Services Management Console

If you no longer want to support searching for resources in any Amazon Web Services Region in your Amazon Web Services account, perform the steps in the following procedure.

To turn off Resource Explorer in all Amazon Web Services Regions
  1. Open the Resource Explorer Settings page.

  2. In the Indexes section, select the check boxes next to all registered Amazon Web Services Regions, and then choose Delete.

    Tip

    You can check the box in the table header row next to Index to check the boxes for all Regions in a single step.

  3. On the Delete indexes page, verify that you want to delete all indexes. Type delete in the Confirm text box, and then choose Delete indexes.

    Resource Explorer displays a green banner at the top of the page to indicate success, or a red banner if there is an error with one or more of the selected Regions.

Amazon CLI
To turn off Resource Explorer in all Amazon Web Services Regions

If you no longer want to support searching for resources in any Amazon Web Services Regions in your account, run the following command to find the ARN of every index in each Amazon Web Services Region in which you previously turned on Resource Explorer.

$ aws resource-explorer-2 list-indexes --query Indexes[*].Arn[ "arn:aws:resource-explorer-2:us-east-1:123456789012:index/1a2b3c4d-5d6e-7f8a-9b0c-abcd11111111", "arn:aws:resource-explorer-2:us-west-1:123456789012:index/1a2b3c4d-5d6e-7f8a-9b0c-abcd22222222", "arn:aws:resource-explorer-2:us-west-2:123456789012:index/1a2b3c4d-5d6e-7f8a-9b0c-abcd33333333" ]

For each response, run the following command to delete the Resource Explorer index in that Region.

$ aws resource-explorer-2 delete-index \ --arn arn:aws:resource-explorer-2:us-east-1:123456789012:index/1a2b3c4d-5d6e-7f8a-9b0c-abcd11111111 \ --region us-east-1 { "Arn": "arn:aws:resource-explorer-2:us-east-1:123456789012:index/1a2b3c4d-5d6e-7f8a-9b0c-abcd11111111", "State": "DELETING" }

Repeat the previous command in each additional Region.

Because Resource Explorer performs some of the cleanup as asynchronous tasks in the background, the response might indicate that the operation is DELETING. This status indicates that the background processes are not yet complete. You can check for final completion by running the following command, and checking for the status to change to DELETED.

$ aws resource-explorer-2 get-index \ --region us-east-1 { "Arn": "arn:aws:resource-explorer-2:us-east-1:123456789012:index/1a2b3c4d-5d6e-7f8a-9b0c-abcd11111111", "CreatedAt": "2022-07-12T18:59:10.503000+00:00", "LastUpdatedAt": "2022-07-13T18:41:58.799000+00:00", "ReplicatingFrom": [], "State": "DELETED", "Tags": {}, "Type": "LOCAL" }