SAML.to
  • Introduction
  • Installation
  • Configuration
    • Identity Providers
      • GitHub
    • Service Providers
      • AWS (Federated Roles)
        • Assuming Roles
          • AWS CLI
          • AWS SDKs
          • Docker
          • Terraform
          • Kubernetes
        • Adding Users
        • Adding AWS Accounts
        • Adding Roles
        • Roles for GitHub Actions
    • Configuration Reference
      • Substitutions
  • FAQs
  • Usage
    • CLI
      • login
      • assume
      • list-roles
    • GitHub Actions
      • Assume AWS Role Action
      • Config Sync Action
  • Advanced Usage
    • AWS
      • CloudWatch Dashboard Sharing
Powered by GitBook
On this page
  1. Configuration
  2. Service Providers
  3. AWS (Federated Roles)
  4. Assuming Roles

Docker

Assume using a Named Profile, then Volume Link the ~/.aws directory

saml-to assume the-role-name --save the-profile-name
docker run -v $(PWD)/.aws:/root/.aws amazon/aws-cli ec2 list-instances
PreviousAWS SDKsNextTerraform

Last updated 2 years ago