Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (37 sloc) 1.21 KB

AWS SHELL

Setup

Installation

yay -S aws-cli gopass summon jq

Copy the following files to to .local/bin/

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>
You can’t perform that action at this time.