Skip to content

Index

Source: src/AWS/ResourceExplorer/ExplorerIndex.ts

An AWS Resource Explorer index — the region singleton that turns on resource indexing so resources in the region can be searched.

Only one index can exist per region, so this is a capture-and-restore singleton: adopting an index that Alchemy did not create requires --adopt (ownership is tracked through the index’s tags), and destroy turns Resource Explorer off for the region (deleting every view in it).

The first index created in an account also creates the AWSServiceRoleForResourceExplorer service-linked role.

Local index

const index = yield* AWS.ResourceExplorer.Index("Index", {});

Aggregator index for cross-region search

const index = yield* AWS.ResourceExplorer.Index("Index", {
type: "AGGREGATOR",
});

Search always goes through a view — see AWS.ResourceExplorer.View and the AWS.ResourceExplorer.Search binding.