Skip to content

Instantly share code, notes, and snippets.

@HieronyM
Created April 4, 2019 19:44
Show Gist options
  • Select an option

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

Select an option

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