Skip to content

Instantly share code, notes, and snippets.

@flaxhofr
flaxhofr / .zshrc
Last active December 6, 2022 03:42
aws sso auth utility
#!/bin/bash
export AWS_DEFAULT_REGION=$(aws configure get region)
export AWS_ACCOUNT_ID=$(aws configure get sso_account_id)
export AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
export AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)
export AWS_SESSION_TOKEN=$(aws configure get aws_session_token)
export AWS_DEFAULT_OUTPUT=json
export AWS_REGION=${AWS_DEFAULT_REGION}