Assume using a Named Profile, then Volume Link the ~/.aws directory
~/.aws
saml-to assume the-role-name --save the-profile-name docker run -v $(PWD)/.aws:/root/.aws amazon/aws-cli ec2 list-instances
Last updated 2 years ago