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

Add option to count results #47

Open
mlimaloureiro opened this issue Sep 30, 2015 · 4 comments
Open

Add option to count results #47

mlimaloureiro opened this issue Sep 30, 2015 · 4 comments

Comments

@mlimaloureiro
Copy link
Contributor

Something like

aws ec2 ls --ec2-tag-value admin-staging --count
@donnemartin
Copy link
Owner

@mlimaloureiro interesting, do you see this as returning the results and then listing the total count at the end?

From a technical standpoint, this might be more involved to implement. Currently SAWS builds the command and sends it off to the awscli to execute and output the results. To get the count you might need to parse the output or use boto.

@mlimaloureiro
Copy link
Contributor Author

yes we would need to parse the output or use boto for that purpose. was thinking about this and don't know if it would make sense to be an actual command instead of an option what do you think ?

aws ec2 count [options]

and yes technically I think it's a decision to make. Do you feel we should stick to awscli or include boto for some tasks?

@donnemartin
Copy link
Owner

was thinking about this and don't know if it would make sense to be an actual command instead of an option what do you think

@mlimaloureiro hmm, I think it might be helpful to check out some more examples of the awscli to see if it would flow better one way or the other.

Do you feel we should stick to awscli or include boto for some tasks?

I think boto is great and it seems like a good solution in this case versus parsing raw text output from the awscli. Also, it seems awscli uses boto under the hood.

@mlimaloureiro
Copy link
Contributor Author

yes I agree on both points, and really think boto will be sooner or later an inevitable asset for this project

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

No branches or pull requests

2 participants