list
select column
-
-S
sort
ec2ctl list -o table -a tag:Name,private_ip_address,public_ip_address,state.name -S tag:Name
column list
- tag:xxx
- private_ip_address
- public_ip_address
- state.name
- ...
search by
via tag
ec2ctl ec2 list -s 'tag:Env=production'
via instance-type
ec2ctl ec2 list -s 'instance_type=c4.large'
multi criteria regexp supported
ec2ctl ec2 list -s 'tag:Env=production,tag:Name=web.*'
execute
On windows
with --platform-type Windows
list
ec2ctl list -s 'tag:Name=web.*' --platform-type Windows
confirm ssm:ping_status = Online
exec
ec2ctl ec2 execute -s 'tag:Name=web.*' --platform-type Windows -c "ls"