Skip to content

Instantly share code, notes, and snippets.

View szollo's full-sized avatar
🟠

Stevie Zollo szollo

🟠
View GitHub Profile
@szollo
szollo / aws.sh
Created March 17, 2017 15:12 — forked from lantrix/aws.sh
Bash functions to autenticate and assume roles in aws federated accounts - for ADFS3
#!/bin/bash
# bash functions to autenticate and assume roles in aws federated accounts
# required tools on $PATH - aws, date, curl, jq, libxml2-utils
# requried environment variables:
export 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