aws-vault
TLDR
Add AWS credentials
SYNOPSIS
aws-vault command [options] profile
DESCRIPTION
aws-vault securely stores and accesses AWS credentials using your operating system's keychain. It generates temporary credentials using STS, avoiding long-lived access keys in plain text files.
The tool provides defense-in-depth security for AWS credentials and enables easy switching between multiple AWS accounts.
PARAMETERS
add profile
Add new credentials to keychainexec profile -- command
Execute command with temporary credentialslogin profile
Open AWS Console in browserlist
List profiles and session statusremove profile
Remove credentials from keychainrotate profile
Rotate access keysexport profile
Export credentials as environment variables--duration=time
Session duration (e.g., 12h, 1h30m)--mfa-token=token
MFA token code--no-session
Don't create STS session
FEATURES
- Secure credential storage in system keychain
- Automatic MFA prompting
- Temporary credential generation
- Multiple AWS account support
- Credential rotation
- Console login generation
WORKFLOW
aws-vault exec work -- aws s3 ls
aws-vault exec work
aws-vault login work
CAVEATS
Requires system keychain access (macOS Keychain, GNOME Keyring, etc.). MFA devices must be configured in AWS. Temporary credentials expire. Some tools don't work with session credentials.
HISTORY
aws-vault was created by 99designs in 2015 to provide secure credential management for AWS, addressing the security risks of storing credentials in plain text.
SEE ALSO
aws(1), aws-configure(1), pass(1)


