Prerequisites:
- AWS CLI and Bitwarden CLI must be installed and on the path.
- PowerShell must be installed. I used PowerShell version 5.1.
- You must be logged onto Bitwarden and the vault must be synced.
- Your AWS login items must have the following custom fields:
--
ACCOUNT
(the AWS Account ID), --ACCESS_KEY_ID
, --SECRET_ACCESS_KEY
, --IS_ROOT
(optional; if it is "true" it indicates that this is a root account).
Installation:
- Clone this gist into a folder on your path.
- Create a new AWS CLI profile as you would normally do.
- Adjust the
~/.aws/credentials
file as shown in the example below.