

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

# AWS Well-Architected Tool 而且 AWS Organizations
<a name="services-that-can-integrate-wat"></a>

 AWS Well-Architected Tool 可協助您記錄工作負載的狀態，並將其與最新的 AWS 架構最佳實務進行比較。

 AWS Well-Architected Tool 搭配 Organizations 使用 可讓 AWS Well-Architected Tool 和 Organizations 客戶簡化與其組織其他成員共用 AWS Well-Architected Tool 資源的程序。

如需詳細資訊，請參閱 *AWS Well-Architected Tool 使用者指南*中的[共用 AWS Well-Architected Tool 資源](https://docs.aws.amazon.com/wellarchitected/latest/userguide/sharing.html)。

使用下列資訊來協助您 AWS Well-Architected Tool 整合 AWS Organizations。



## 當您啟用整合時，即會建立服務連結角色。
<a name="integrate-enable-slr-wat"></a>

當您啟用受信任存取時，會在您組織的管理帳戶中自動建立以下[服務連結角色](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html)。此角色允許 在組織中的組織帳戶中 AWS WA Tool 執行支援的操作。

只有在您停用 AWS WA Tool 和 Organizations 之間的受信任存取，或者從組織中刪除成員帳戶時，才能移除或修改此角色。
+ `AWSServiceRoleForWellArchitected`

服務角色政策為 `AWSWellArchitectedOrganizationsServiceRolePolicy`

## 服務連結角色所使用的服務委託人
<a name="integrate-enable-svcprin-wat"></a>

上一節中的服務連結角色，只能由依據角色定義的信任關係所授權的服務委託人來假設。 AWS WA Tool 授予存取權給下列服務主體的服務連結角色：
+ `wellarchitected.amazonaws.com`

## 使用 啟用受信任存取 AWS WA Tool
<a name="integrate-enable-ta-wat"></a>

允許更新 AWS WA Tool 以反映組織中的階層變更。

如需啟用受信任存取所需許可的資訊，請參閱[啟用信任的存取所需的許可](orgs_integrate_services.md#orgs_trusted_access_perms)。

您可以使用 AWS Well-Architected Tool 主控台或 主控台啟用受信任存取 AWS Organizations 。

**重要**  
我們強烈建議您盡可能使用 AWS Well-Architected Tool 主控台或工具來啟用與 Organizations 的整合。這可讓 AWS Well-Architected Tool 執行其所需的任何組態，例如建立服務所需的資源。只有在您無法使用 AWS Well-Architected Tool提供的工具啟用整合時，才能繼續執行這些步驟。如需詳細資訊，請參閱[本說明](orgs_integrate_services.md#important-note-about-integration)。  
如果您使用 AWS Well-Architected Tool 主控台或工具啟用受信任存取，則不需要完成這些步驟。

**使用 AWS WA Tool 主控台啟用受信任存取**  
請參閱*AWS Well-Architected Tool 《 使用者指南*》中的[共用您的 AWS Well-Architected Tool 資源](https://docs.aws.amazon.com/wellarchitected/latest/userguide/sharing.html)。

您可以使用 AWS Organizations 主控台、執行 AWS CLI 命令，或呼叫其中一個 AWS SDKs。

------
#### [ AWS 管理主控台 ]

**使用 Organizations 主控台來啟用受信任的服務存取**

1. 登入 [AWS Organizations 主控台](https://console.aws.amazon.com/organizations/v2)。您必須以 IAM 使用者登入、擔任 IAM 角色，或是以組織管理帳戶中的根使用者 ([不建議](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials)) 身分登入。

1. 在導覽窗格中，選擇**服務**。

1. **AWS Well-Architected Tool** 在服務清單中選擇 。

1. 選擇 **Enable trusted access (啟用信任存取)**。

1. 在**啟用受信任存取對話方塊中 AWS Well-Architected Tool**，輸入**啟用**以確認，然後選擇**啟用受信任存取**。

1. 如果您只是 的管理員 AWS Organizations，請告訴管理員 AWS Well-Architected Tool ，他們現在可以從服務主控台 啟用該服務來使用 AWS Organizations 。

------
#### [ AWS CLI, AWS API ]

**使用 Organizations CLI/SDK 來啟用受信任服務存取**  
使用下列 AWS CLI 命令或 API 操作來啟用受信任的服務存取：
+ AWS CLI: [enable-aws-service-access](https://docs.aws.amazon.com/cli/latest/reference/organizations/enable-aws-service-access.html)

  執行下列命令，以 Organizations 將 啟用 AWS Well-Architected Tool 為信任的服務。

  ```
  $ aws organizations enable-aws-service-access \ 
      --service-principal wellarchitected.amazonaws.com
  ```

  此命令成功後就不會產生輸出。
+ AWS API：[EnableAWSServiceAccess](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html)

------

## 使用 停用受信任存取 AWS WA Tool
<a name="integrate-disable-ta-wat"></a>

如需啟用受信任的存取所需許可的資訊，請參閱[停用信任的存取所需的許可](orgs_integrate_services.md#orgs_trusted_access_disable_perms)。

您可以使用 AWS Well-Architected Tool 或 AWS Organizations 工具來停用受信任存取。

**重要**  
我們強烈建議您盡可能使用 AWS Well-Architected Tool 主控台或工具來停用與 Organizations 的整合。這可讓 AWS Well-Architected Tool 執行其所需的任何清除，例如刪除 服務不再需要的資源或存取角色。只有在您無法使用 AWS Well-Architected Tool提供的工具停用整合成時，才能繼續執行這些步驟。  
如果您使用 AWS Well-Architected Tool 主控台或工具停用受信任存取，則不需要完成這些步驟。

**使用 AWS WA Tool 主控台停用受信任存取**  
請參閱*AWS Well-Architected Tool 《 使用者指南*》中的[共用您的 AWS Well-Architected Tool 資源](https://docs.aws.amazon.com/wellarchitected/latest/userguide/sharing.html)。

您可以透過執行 Organizations AWS CLI 命令或呼叫其中一個 AWS SDKs。

------
#### [ AWS CLI, AWS API ]

**使用 Organizations CLI/SDK 來停用受信任服務存取**  
使用下列 AWS CLI 命令或 API 操作來停用受信任的服務存取：
+ AWS CLI: [disable-aws-service-access](https://docs.aws.amazon.com/cli/latest/reference/organizations/disable-aws-service-access.html)

  執行下列命令，以 Organizations 將 停用 AWS Well-Architected Tool 為信任的服務。

  ```
  $ aws organizations disable-aws-service-access \
      --service-principal wellarchitected.amazonaws.com
  ```

  此命令成功後就不會產生輸出。
+ AWS API：[DisableAWSServiceAccess](https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html)

------