multiple profiles in one machine
//who is calling
aws sts get-caller-identity
//list profiles
aws configure list-profiles
//add new profile for myone. set format: json default output format
//if does not add profile flag, the profile name is default
aws configure --profile myone
//use profile
aws sts get-caller-identity --profile myone
Some commands
# list lambda function
aws lambda list-functions
# overwrite default region
aws lambda list-functions --region us-west-1
No comments:
Post a Comment