AWS SHELL

Setup

Configuration

Create the file /usr/local/lib/summon/gopass with the content:

#!/bin/bash
ARGS=$(echo $1| tr : \ )
gopass $ARGS

add the following to gopass under show private/aws/<aws account name>/<aws username>

AccessKey
secretkey: SecretKey
accesskey: accesskey
mfa: arn for mfa
account: aws account
region: default aws region
username: aws username

create the following under ‘’$XDG_CONFIG_HOME/aws_shell/<user_account_alias>.yml’‘

AWS_ACCESS_KEY_ID: !var private/aws/<aws_account>/<aws_username>:accesskey
AWS_SECRET_ACCESS_KEY: !var private/aws/<aws_account>/<aws_username>:secretkey
AWS_MFA_ARN: !var private/aws/<aws_account>/<aws_username>:mfa

Usage

from a bash shell run:

aws_shell <user_account_alias>