Integrating Amazon CLI with IAM Identity Center - Amazon IAM Identity Center
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Integrating Amazon CLI with IAM Identity Center

Amazon Command Line Interface (CLI) version 2 integration with IAM Identity Center simplifies the sign-in process. Developers can sign in directly to the Amazon CLI using the same Active Directory or IAM Identity Center credentials that they normally use to sign in to IAM Identity Center, and access their assigned accounts and roles. For example, after an administrator configures IAM Identity Center to use Active Directory for authentication, a developer can sign into the Amazon CLI directly using their Active Directory credentials.

Amazon CLI integration with IAM Identity Center offers the following benefits:

  • Enterprises can enable their developers to sign in using credentials from IAM Identity Center or Active Directory by connecting IAM Identity Center to their Active Directory using Amazon Directory Service.

  • Developers can sign in from the CLI for faster access.

  • Developers can list and switch between accounts and roles to which they have assigned access.

  • Developers can generate and save named role profiles in their CLI configuration automatically and reference them in the CLI to run commands in desired accounts and roles.

  • The CLI manages short-term credentials automatically so developers can start in and stay in the CLI securely without interruption, and run long running scripts.

How to integrate Amazon CLI with IAM Identity Center

To use the Amazon CLI integration with IAM Identity Center, you need to download, install, and configure Amazon Command Line Interface version 2. For detailed steps on how to download and integrate the Amazon CLI with IAM Identity Center, see Configuring the Amazon CLI to use IAM Identity Center in the Amazon Command Line Interface User Guide.