Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document --values-for valid keys #282

Open
boweeb opened this issue Apr 6, 2020 · 2 comments
Open

Document --values-for valid keys #282

boweeb opened this issue Apr 6, 2020 · 2 comments

Comments

@boweeb
Copy link

boweeb commented Apr 6, 2020

For the life of me, I can't find where valid keys are defined or how they're determined. This information would be particularly handy in the awless show --help output. FWIW, my immediate use-case is only concerned with EC2 instance "Launch Time".

awless show i-foobar shows an Uptime key but that doesn't work.

$ awless show --values-for Uptime i-foobar
[error]   no values for ["Uptime"]

aws-cli shows a LaunchTime key but that doesn't work either.

$ aws ec2 describe-instances --instance-ids=i-foobar | jq -r '.Reservations[].Instances[]'
{
  "AmiLaunchIndex": 0,
  "ImageId": "ami-foobaz",
  "InstanceId": "i-foobar",
  "InstanceType": "m4.large",
  "KeyName": "foo",
  "LaunchTime": "2020-04-03T16:10:26+00:00",
...

$ awless show --values-for LaunchTime i-foobar
[error]   no values for ["LaunchTime"]

My google-fu can only find examples of ID, name, and PublicIP. As an aside, the argument appears to be case-insensitive but that's not called out either.

@simcap
Copy link
Contributor

simcap commented Apr 6, 2020

To save you some time, and I am sorry to say that this project is no longer maintained unfortunately.

@boweeb
Copy link
Author

boweeb commented Apr 6, 2020

@simcap
Lol -- thanks for the heads up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants