> For the complete documentation index, see [llms.txt](https://docs.saml.to/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.saml.to/configuration/service-providers/aws-federated-roles/assuming-roles/docker.md).

# 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
```
