Skip to content

Instantly share code, notes, and snippets.

View dukejones's full-sized avatar
🥽

Duke Jones dukejones

🥽
  • Berkeley
View GitHub Profile
@dukejones
dukejones / aws_assume_role
Last active November 3, 2017 16:33 — forked from gene1wood/aws_assume_role
Workaround AWS CLI lack of support for IAM assume-role
#!/bin/bash
set -e
usage () {
cat <<DOCUMENTATIONXX
Usage : $0 PROFILE_NAME COMMAND
This tool will take a named profile from your ~/.aws/credentials with only
a "role_arn = " line and no source profile, get temporary credentials for
the profile, and execute the rest of the parameters as a command with the