title: Can AWS CLI be used with a federated login?
body: <p>I login to AWS with my Active Directory account in my company. We are using federated login, as described <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html" rel="noreferrer">here</a>:</p>
  <blockquote>
  <p>Federated Users and Roles</p>
  <p>Federated users don't have permanent identities in your AWS account the way that IAM users do. To assign permissions to federated users, you can create an entity referred to as a role and define permissions for the role. When a federated user signs in to AWS, the user is associated with the role and is granted the permissions that are defined in the role. For more information, see Creating a Role for a Third-Party Identity Provider (Federation).</p>
  </blockquote>
  <p>My company has a Security Token Service (STS) which is a SAML provider.</p>
  <p>I can use that to login to AWS management console, but can I login to AWS CLI as well with my federated login?</p>