Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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"
Comment

PREVIOUS NEXT
Code Example
Shell :: debian uninstall package 
Shell :: search all folders for file match linux 
Shell :: how to compress pdf in linux 
Shell :: list git config 
Shell :: vs code on ubuntu 20.04 and delete old version 
Shell :: awk skip first line 
Shell :: delete cash on ubuntu 
Shell :: make a commit with past date 
Shell :: Cannot determine which native SDK version your project uses because the module `expo` is not installed. Please install it with `yarn add expo` and try again. 
Shell :: fetch all branches 
Shell :: git status with sizes 
Shell :: delete node_modules 
Shell :: git get username 
Shell :: can linux terminal crash 
Shell :: apache run script on startup 
Shell :: how to remove last migration in ef core 
Shell :: npm install Unable to authenticate, need: Bearer authorization_uri 
Shell :: powershell get process name by port 
Shell :: connect vm to cloud storage gcp 
Shell :: install mocha 
Shell :: execute as another user linux 
Shell :: docker image with wget 
Shell :: crontab delay after reboot 
Shell :: how to check if virtualization in enable on linux 
Shell :: apache2 change directory root 
Shell :: git revert commit 
Shell :: exec user process caused: exec format error 
Shell :: get mac address linux 
Shell :: docker stop and remove specific container 
Shell :: awk how to remove lines in one file that are found in another file 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =