Skip to content

Instantly share code, notes, and snippets.

@HieronyM
Last active April 5, 2019 19:08
Show Gist options
  • Select an option

  • Save HieronyM/149ca010930676b25e6b5b8cb2c9e134 to your computer and use it in GitHub Desktop.

Select an option

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:
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