Describe Load Balancer
aws elb describe-load-balancers --load-balancer-names lbname --output text|grep INSTANCES|awk '{print $2}' > filename.txt
Describe intance with particular instnace type
aws ec2 describe-instances --filters "Name=instance-type,Values=m5.large"
aws ec2 describe-instances
Describe aws account all volume and there information
aws ec2 describe-volumes --query 'Volumes[*].{ID:VolumeId,Tag:Tags}'
Get Instance ID information
wget -q -O - http://169.254.169.254/latest/meta-data/instance-id
Get instance public ip
aws ec2 describe-instances --instance-id $p | grep PublicIpAddress | grep -o -P "\d+\.\d+\.\d+\.\d+" | grep -v '^10\.' >> filename.txt
aws elb describe-load-balancers --load-balancer-names lbname --output text|grep INSTANCES|awk '{print $2}' > filename.txt
Describe intance with particular instnace type
aws ec2 describe-instances --filters "Name=instance-type,Values=m5.large"
aws ec2 describe-instances
Describe aws account all volume and there information
aws ec2 describe-volumes --query 'Volumes[*].{ID:VolumeId,Tag:Tags}'
Get Instance ID information
wget -q -O - http://169.254.169.254/latest/meta-data/instance-id
Get instance public ip
aws ec2 describe-instances --instance-id $p | grep PublicIpAddress | grep -o -P "\d+\.\d+\.\d+\.\d+" | grep -v '^10\.' >> filename.txt
1 comments:
Thanks for providing your information. It's very useful to users, updates with us. Get trained and get more knowledge on AWS Online Training
Post a Comment