Horje
aws cli ec2 list instances Code Example
aws cli ec2 list instances
# Get list of all EC2 (all info)
awsProfile="awsProfileName" # Use your aws profile name
aws --profile "$awsProfile" ec2 describe-instances

# Get list of all EC2 (custom filter)
awsProfile="awsProfileName" # Use your aws profile name
awsQuery="Reservations[].Instances[].{InstanceId:InstanceId,Placement:Placement,PrivateIpAddress:PrivateIpAddress,PublicIpAddress:PublicIpAddress,Tags:Tags}"
aws --profile "$awsProfile" ec2 describe-instances --query "$awsQuery"




Shell

Related
git diff staged changes Code Example git diff staged changes Code Example
linux create public key Code Example linux create public key Code Example
btw i use arch linux Code Example btw i use arch linux Code Example
how to check free space in linux Code Example how to check free space in linux Code Example
create public key linux Code Example create public key linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9