

# Amazon Well-Architected Tool and Amazon Organizations
<a name="services-that-can-integrate-wat"></a>

The Amazon Well-Architected Tool helps you document the state of your workloads and compares them to the latest Amazon architectural best practices.

Using Amazon Well-Architected Tool with Organizations enables both Amazon Well-Architected Tool and Organizations customers to simplify the process of sharing Amazon Well-Architected Tool resources with other members of their organization.

For more information, see [Sharing your Amazon Well-Architected Tool resources](https://docs.amazonaws.cn/wellarchitected/latest/userguide/sharing.html) in the *Amazon Well-Architected Tool User Guide*.

Use the following information to help you integrate Amazon Well-Architected Tool with Amazon Organizations.



## Service-linked roles created when you enable integration
<a name="integrate-enable-slr-wat"></a>

The following [service-linked role](https://docs.amazonaws.cn/IAM/latest/UserGuide/using-service-linked-roles.html) is automatically created in your organization's management account when you enable trusted access. This role allows Amazon WA Tool to perform supported operations within your organization's accounts in your organization.

You can delete or modify this role only if you disable trusted access between Amazon WA Tool and Organizations, or if you remove the member account from the organization.
+ `AWSServiceRoleForWellArchitected`

The service role policy is `AWSWellArchitectedOrganizationsServiceRolePolicy`

## Service principals used by the service-linked roles
<a name="integrate-enable-svcprin-wat"></a>

The service-linked role in the previous section can be assumed only by the service principals authorized by the trust relationships defined for the role. The service-linked roles used by Amazon WA Tool grant access to the following service principals:
+ `wellarchitected.amazonaws.com`

## Enabling trusted access with Amazon WA Tool
<a name="integrate-enable-ta-wat"></a>

Allows the updating of Amazon WA Tool to reflect hierarchical changes in an organization.

For information about the permissions needed to enable trusted access, see [Permissions required to enable trusted access](orgs_integrate_services.md#orgs_trusted_access_perms).

You can enable trusted access using either the Amazon Well-Architected Tool console or the Amazon Organizations console.

**Important**  
We strongly recommend that whenever possible, you use the Amazon Well-Architected Tool console or tools to enable integration with Organizations. This lets Amazon Well-Architected Tool perform any configuration that it requires, such as creating resources needed by the service. Proceed with these steps only if you can’t enable integration using the tools provided by Amazon Well-Architected Tool. For more information, see [this note](orgs_integrate_services.md#important-note-about-integration).   
If you enable trusted access by using the Amazon Well-Architected Tool console or tools then you don’t need to complete these steps.

**To enable trusted access using the Amazon WA Tool console**  
See [Sharing your Amazon Well-Architected Tool resources](https://docs.amazonaws.cn/wellarchitected/latest/userguide/sharing.html) in the *Amazon Well-Architected Tool User Guide*.

You can enable trusted access by using either the Amazon Organizations console, by running a Amazon CLI command, or by calling an API operation in one of the Amazon SDKs.

------
#### [ Amazon Web Services Management Console ]

**To enable trusted service access using the Organizations console**

1. Sign in to the [Amazon Organizations console](https://console.amazonaws.cn/organizations/v2). You must sign in as an IAM user, assume an IAM role, or sign in as the root user ([not recommended](https://docs.amazonaws.cn/IAM/latest/UserGuide/best-practices.html#lock-away-credentials)) in the organization’s management account.

1. In the navigation pane, choose **Services**.

1. Choose **Amazon Well-Architected Tool** in the list of services.

1. Choose **Enable trusted access**.

1. In the **Enable trusted access for Amazon Well-Architected Tool** dialog box, type **enable** to confirm, and then choose **Enable trusted access**.

1. If you are the administrator of only Amazon Organizations, tell the administrator of Amazon Well-Architected Tool that they can now enable that service to work with Amazon Organizations from the service console .

------
#### [ Amazon CLI, Amazon API ]

**To enable trusted service access using the OrganizationsCLI/SDK**  
Use the following Amazon CLI commands or API operations to enable trusted service access:
+ Amazon CLI: [enable-aws-service-access](https://docs.amazonaws.cn/cli/latest/reference/organizations/enable-aws-service-access.html)

  Run the following command to enable Amazon Well-Architected Tool as a trusted service with Organizations.

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

  This command produces no output when successful.
+ Amazon API: [EnableAWSServiceAccess](https://docs.amazonaws.cn/organizations/latest/APIReference/API_EnableAWSServiceAccess.html)

------

## Disabling trusted access with Amazon WA Tool
<a name="integrate-disable-ta-wat"></a>

For information about the permissions needed to disable trusted access, see [Permissions required to disable trusted access](orgs_integrate_services.md#orgs_trusted_access_disable_perms).

You can disable trusted access using either the Amazon Well-Architected Tool or the Amazon Organizations tools.

**Important**  
We strongly recommend that whenever possible, you use the Amazon Well-Architected Tool console or tools to disable integration with Organizations. This lets Amazon Well-Architected Tool perform any clean up that it requires, such as deleting resources or access roles that are no longer needed by the service. Proceed with these steps only if you can’t disable integration using the tools provided by Amazon Well-Architected Tool.  
If you disable trusted access by using the Amazon Well-Architected Tool console or tools then you don’t need to complete these steps.

**To disable trusted access using the Amazon WA Tool console**  
See [Sharing your Amazon Well-Architected Tool resources](https://docs.amazonaws.cn/wellarchitected/latest/userguide/sharing.html) in the *Amazon Well-Architected Tool User Guide*.

You can disable trusted access by running a Organizations Amazon CLI command, or by calling an Organizations API operation in one of the Amazon SDKs.

------
#### [ Amazon CLI, Amazon API ]

**To disable trusted service access using the Organizations CLI/SDK**  
Use the following Amazon CLI commands or API operations to disable trusted service access:
+ Amazon CLI: [disable-aws-service-access](https://docs.amazonaws.cn/cli/latest/reference/organizations/disable-aws-service-access.html)

  Run the following command to disable Amazon Well-Architected Tool as a trusted service with Organizations.

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

  This command produces no output when successful.
+ Amazon API: [DisableAWSServiceAccess](https://docs.amazonaws.cn/organizations/latest/APIReference/API_DisableAWSServiceAccess.html)

------