Difference between revisions of "Suaws"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
== See also == | == See also == | ||
* {{aws configure}} | * {{aws configure}} | ||
− | * {{Bash} | + | * {{Bash}} |
[[Category:AWS]] | [[Category:AWS]] |
Revision as of 08:58, 31 July 2022
suaws () { if [ -z "$1" ]; then echo "Possible values: $(aws configure list-profiles)" else export AWS_PROFILE=$1 export PS1='[\u@\h $AWS_PROFILE]\$ ' fi }
Related terms
SHELL, PS1
aws configure list
.bash_profile, .zprofile
whoamiaws
aws-ec2-describe-instances-all-regions
- AWS Organizations
See also
aws configure [ list-profiles | sso | sso-session | set ]
,~/.aws/config
,.aws/credentials
,mfa_serial
, AWS cli environmental variables:AWS_PROFILE
,AWS_REGION, AWS_DEFAULT_REGION, AWS_SESSION_TOKEN, AWS_ROLE_SESSION_NAME
,.aws/
, AWS functions,--profile, viawsconfig, viawscredentials
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: