Export

Weep can generate a command to export credentials to environment variables in your shell.

Read about AWS configuration settings and precedence for information about precedence of credential sources.

Here's a basic call to print out the credential export command:

weep export test_account_user

Weep will do its best to detect your shell and generate the correct export command. Bash, Zsh, and Fish are currently supported.

To automatically export the credentials, just modify your command to be evaluated by the shell:

eval $(weep export test_account_user)

Then you can verify that the credentials are set in your environment:

env | grep AWS

Last updated