

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 開啟多帳戶搜尋
<a name="manage-service-multi-account"></a>

透過多帳戶搜尋，您可以在您 AWS Organizations 或組織單位 (OU) 中具有作用中索引的帳號之間搜尋資源。

**Topics**
+ [必要條件](#getting-started-prerequisites)
+ [啟用多帳戶搜尋](#enable-multi-account-search)
+ [多帳戶快速設定](#getting-started-quick-setup)
+ [帳號動作對資源總管多帳號搜尋的影響](manage-service-account-actions.md)

## 必要條件
<a name="getting-started-prerequisites"></a>

若要為您的組織開啟多帳戶搜尋，請完成下列步驟：
+ 對於[選擇加入區域](https://docs.aws.amazon.com/resource-explorer/latest/userguide/opt-in-region-considerations)，請確認您的管理帳戶也已選擇加入您要開啟多帳戶搜尋的地方。
+ [建立管理使用者。](https://docs.aws.amazon.com/resource-explorer/latest/userguide/getting-started-setting-up-prereqs.html#create-an-admin)
+ 使`aws iam create-service-linked-role --aws-service-name resource-explorer-2.amazonaws.com`用[在管理員帳戶中建立服務連結角色](https://docs.aws.amazon.com/resource-explorer/latest/userguide/security_iam_service-linked-roles.html)。
+ 在中[啟用受信任的存取 AWS Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html)。這可讓您與資源總管完全整合，以列出組織中所有帳號的資源。
+ 指派委派的管理員 (*建議*)。如需詳細資訊，請參閱*《AWS Organizations 使用指南》*中[的「委派管理員」以瞭解與 Organizations 合作的 AWS 服務](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_delegated_admin.html)。
  + 資源總管僅支援 1 位委派管理員，他們執行與管理帳戶類似的動作。
  + 移除或變更組織的委派系統管理員會導致移除其帳戶中建立的所有多帳戶檢視。

## 啟用多帳戶搜尋
<a name="enable-multi-account-search"></a>

若要搜尋並探索組織帳戶中的資源，您必須完成下列步驟：

1. [在您的. AWS 資源總管 中的一個或多個帳戶中啟用 AWS Organizations.](https://docs.aws.amazon.com/resource-explorer/latest/userguide/getting-started-setting-up.html)

1. [註冊一個區域以包含彙總器索引。](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region.html)

1. [選擇要在其中建立彙總索引的區域。此區域必須在您的 AWS Organizations.](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-views.html)

1. [建立範圍為您 AWS Organizations 或組織單位的資源總管檢視。在上一個步驟的彙總器「區域」中建立此檢視表。](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-views-create.html)

1. [與整個組織的帳戶共用檢視。](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-views-share.html)

## 多帳戶快速設定
<a name="getting-started-quick-setup"></a>

使用 [快速設定] 在組織中的多個帳號上啟用資源總管。

**注意**  
此程序不會在管理帳戶中部署任何資源。如果您使用的是管理帳戶，且想要在帳號中建立索引，則必須使用 Resource Explorer 上線流程手動新增這些索引。

1. 導覽至系統管理員主控台中資源總管的[快速設定](https://console.aws.amazon.com/systems-manager/quick-setup/create-configuration?configurationType=AWSQuickSetupType-ResourceExplorer)。

1. 選擇您的**彙總索引區域**。這可讓您搜尋位於所選目標帳號之所有區域中的資源。如果任何選取的目標帳戶已在其他區域中設定彙總索引，則現有的彙總器索引將自動取代為此新區域。

1. 選擇您的帳戶**目標**。您可以為整個組織或特定組織單位啟用資源總管 (OUs)。
**注意**  
您一次最多可以部署 50,000 個 AWS CloudFormation 堆疊。如果您的大型組織跨越多個區域，您應該以較小的批次在 OU 層級部署。

1. **在選擇「建立」之前，請先閱讀確認摘要。**