LoginSignup
0
0

More than 5 years have passed since last update.

ec2ctl memo

Posted at

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"

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0