This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-aws-secrets() { | |
local profile_name="${1:?"must provide profile name"}" | |
local creds | |
creds=$(aws configure export-credentials --profile "${profile_name}") | |
rc=$? | |
if [ "${rc}" -eq 255 ]; then | |
# using sso and not logged in | |
local sso_session="$(aws configure get sso_session --profile "${profile_name}")" |
OlderNewer