Skip to content

Instantly share code, notes, and snippets.

View jasond's full-sized avatar

Jason Dwyer jasond

  • Melbourne, Australia
View GitHub Profile
#!/bin/bash
## bash or zsh functions to autenticate and assume roles in aws federated accounts
# required tools on $PATH - aws, date, curl, jq
#
# requried environment variables:
# AWS_CLI=`which aws`
#
# optional environment variable, to automatically assume a specific role when calling assume()
#AWS_ASSUME_ROLE=arn:aws:iam::369407384105:role/cross-account-federated-role