rstudio / fuzzbucket

a simplified means to CRUD ephemeral user-scoped EC2 instances
MIT License
7 stars 2 forks source link

Add quiet option to suppress header output in ssh command #12

Closed joncfoo closed 4 years ago

joncfoo commented 4 years ago

Adding this options makes it so we can use diff on the output of ssh commands

meatballhat commented 4 years ago

Is there also an option where the diff'ing can check values that have been grep -v "^#"? This is part of why the fuzzbucket client log format has a leading #.

joncfoo commented 4 years ago

Yep that's possible, though I'm not using that right now (side effect of -q suppressing both log and print).

The header I was wanting to suppress specifically was the instance info that was printed:

[fuzzbucket-joncfoo-opensuseleap]
age = 0d1h20m48s
created_at = 1584540351.074704
image_alias = opensuseleap
image_id = ami-05120304eb067176e
instance_id = i-04000e0d775cf1da7
instance_type = t3.small
name = fuzzbucket-joncfoo-opensuseleap
public_dns_name = ec2-3-90-175-109.compute-1.amazonaws.com
public_ip = 3.90.175.109
ttl = 14400
user = joncfoo
meatballhat commented 4 years ago

ahhhhh, gotcha 👍