Difference between revisions of "Suaws"
Jump to navigation
Jump to search
(4 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
* <code>[[.bash_profile]], [[.zprofile]]</code> | * <code>[[.bash_profile]], [[.zprofile]]</code> | ||
* <code>[[whoamiaws]]</code> | * <code>[[whoamiaws]]</code> | ||
− | * <code>[[aws-ec2-describe-instances-all-regions]]</code> | + | * [[AWS functions]]: <code>[[aws-ec2-describe-instances-all-regions]]</code> |
− | * [[ | + | * <code>[[su]]</code> |
== See also == | == See also == | ||
− | * {{aws | + | * {{aws configure}} |
+ | * {{Bash}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 10:04, 22 November 2023
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[edit]
SHELL, PS1
aws configure list
.bash_profile, .zprofile
whoamiaws
- AWS functions:
aws-ec2-describe-instances-all-regions
su
See also[edit]
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: