AWS Cheat Sheet
Extract region of AWS stream from EC2 Instance .
[hostanme]~#aws configure list
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key ******************** iam-role
secret_key ******************** iam-role
region ap-northeast-1 imds
[hostanme]~# aws configure list|grep region|awk '{print $2}'
ap-northeast-1
export AWSREGION=` aws configure list|grep region|awk '{print $2}'`
echo $AWSREGION
Comments
Post a Comment