aws-vault exec <profile> <command>

Execute a command with AWS credentials

Arguments

NameDescription
profile
command

Options

NameDescription
-d, --duration <DURATION>Duration of the temporary or assume-role session. Defaults to 1h
-n, --no-sessionUse master credentials, no session or role used
--region <REGION>The AWS region
-t, --mfa-token <MFA-TOKEN>The MFA token to use