

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

# 將 AWS CLI 與 IAM Identity Center 整合
<a name="integrating-aws-cli"></a>

AWS 命令列界面 (CLI) 第 2 版與 IAM Identity Center 整合可簡化登入程序。開發人員可以使用他們通常用來登入 IAM Identity Center AWS CLI 的相同 Active Directory 或 IAM Identity Center 登入資料直接登入 ，並存取其指派的帳戶和角色。例如，在管理員設定 IAM Identity Center 使用 Active Directory 進行身分驗證之後，開發人員可以使用其 Active Directory 登入資料 AWS CLI 直接登入 。

AWS CLI 與 IAM Identity Center 整合可提供下列優點：
+ 企業可以使用 將 IAM Identity Center 連線至其 Active Directory，讓開發人員使用 IAM Identity Center 或 Active Directory 的憑證登入 Directory Service。
+ 開發人員可以從 CLI 登入以加快存取速度。
+ 開發人員可以列出並在他們已指派存取權的帳戶和角色之間切換。
+ 開發人員可以在其 CLI 組態中自動產生並儲存具名角色描述檔，並在 CLI 中參考這些描述檔，以在所需的帳戶和角色中執行命令。
+ CLI 會自動管理短期登入資料，讓開發人員可以安全地在 CLI 中啟動和保留，而不會中斷，並執行長時間執行的指令碼。

## 如何將 AWS CLI 與 IAM Identity Center 整合
<a name="how-to-integrate-aws-cli"></a>

若要使用 CLI AWS 與 IAM Identity Center 整合，請下載、安裝和設定第 2 AWS Command Line Interface 版。如需如何下載 並將其 AWS CLI 與 IAM Identity Center 整合的詳細步驟，請參閱*AWS Command Line Interface 《 使用者指南*》中的[設定 AWS CLI 以使用 IAM Identity Center](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html)。