Last active
April 5, 2019 19:08
-
-
Save HieronyM/149ca010930676b25e6b5b8cb2c9e134 to your computer and use it in GitHub Desktop.
List all db-instance events for a given instance and for the last 14 days:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws \ | |
| rds \ | |
| describe-events \ | |
| --source-identifier db_identifier \ | |
| --source-type db-instance \ | |
| --start-time $(date -u -d "14 days ago + 5 seconds" '+%FT%T') \ | |
| --end-time $(date -u '+%FT%T') \ | |
| --query 'Events[*].[Date,Message]' --output text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment