Skip to content

AWS Command Line Interface

Homebrew version

The AWS Command Line Interface is mainly required for its SSO authentication command.

brew install awscli

Alternatively you can refer to AWS' guide for installing AWS CLI

You will also need to install session-manager either through Homebrew session-manager for Mac or the general AWS installation instruction for other platforms. session-manager is used by ok forward to connect to your database remotely.

To simplify the login process, add the following shell function to your shell configuration file (in .bashrc or .zshrc):

function sso() {
  local profile=$(aws configure list-profiles | fzf)
  export AWS_PROFILE="$profile"
  aws sso login
}