Setting a default view in an AWS Region - AWS Resource Explorer

Setting a default view in an AWS Region

In AWS Resource Explorer, you can define many views in an AWS Region, where each view addresses different search requirements. We recommend that you set one view in each Region as the default view for that Region.

Resource Explorer uses the default view whenever a user performs a search and doesn't explicitly specify which view to use. The unified search bar at the top of every AWS Management Console page also automatically uses the default view in the Region that contains the aggregator index to find resources that match the user's search query.

You can select only a view that exists in the Region to be that Region's default view. If another Region has a view that you want to use, you must first create a copy of that view in the Region in which you want to make it the default view.

Tip

There is no copy view operation. You must create a view in the target Region and then copy the settings from the existing view to the new view.

You can specify a view as the default for its Region by using the AWS Management Console or by running AWS CLI commands or their equivalent API operations in an AWS SDK.

AWS Management Console
To set a default view
  1. On the Resource Explorer Views page, choose the option button next to the view that you want to make the default for its Region.

  2. Choose Actions, then choose Set as default.

AWS CLI
To set a default view

Run the following command to set the specified view as the default for its Region. The following example sets the specified view to be the default for all searches performed in the us-east-1 Region. That view must exist in the Region in which you run the command.

$ aws resource-explorer-2 associate-default-view \ --region us-east-1 \ --view-arn arn:aws:resource-explorer-2:us-east-1:123456789012:view/MyViewName/1a2b3c4d-5d6e-7f8a-9b0c-abcd11111111 { "ViewArn": "arn:aws:resource-explorer-2:us-east-1:123456789012:view/MyViewName/1a2b3c4d-5d6e-7f8a-9b0c-abcd11111111" }