Created
April 4, 2019 19:44
-
-
Save HieronyM/f2d0fb811c15b70126065aaa1e831ae3 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 ab-postgres-01 \ | |
| --source-type db-instance \ | |
| --start-time $(date -u -v-13d -v-23H -v-59M -v-55S'+%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