Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Having Fun Coding

Paul Greenberg greenpau

💻
Having Fun Coding
View GitHub Profile
@greenpau
greenpau / aws.sh
Created Aug 15, 2019 — forked from lantrix/aws.sh
Bash functions to autenticate and assume roles in aws federated accounts - for ADFS3
View aws.sh
#!/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