Skip to content

Instantly share code, notes, and snippets.

@rob1256
rob1256 / aws-configure.py
Created November 5, 2024 11:01
Auto-populate aws config with SSO roles using Python
import os.path
import subprocess
import glob
import boto3
import json
SSO_START_URL = "https://XXXX.awsapps.com/start/"
SSO_SESSION_CONFIG_NAME = "XXX"
def getAccessTokenFromSsoSession():
@rob1256
rob1256 / .gitconfig
Last active December 14, 2017 10:07
Useful git config
[user]
name = "NAME_HERE"
email = "EMAIL_HERE"
[core]
autocrlf = input
editor = nano
excludesfile = /Users/rob.obrien/.gitignore
[color]