aws / aws-elastic-beanstalk-cli

The EB CLI is a command line interface for Elastic Beanstalk that provides interactive commands that simplify creating, updating and monitoring environments from a local repository.
Apache License 2.0
161 stars 77 forks source link

Add eb events --since and --tail #517

Open glensc opened 3 months ago

glensc commented 3 months ago

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request. If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Tell us about your request

Please add --since=TIMESTAMP and/or --tail=LINES options to eb events command.

I would like to follow logs since some timestamp (for example deploy started), similar to kubectl has.

I would also accept --tail=0 option to start following for new entries only.

Additional context

I'm attempting to build CI workflow that starts update an environment and print events as they occur until deploy is finished.

glensc commented 3 months ago

Could use aws elasticbeanstalk describe-events because it has --start-time, but it doesn't have --follow...

$ aws elasticbeanstalk describe-events --application-name="..." --environment-name="..." --start-time="2024-06-04T00:00:00+00:00" --output=text