Skip to content

Instantly share code, notes, and snippets.

View neilljordan's full-sized avatar
🎯
Focusing

neilljordan

🎯
Focusing
View GitHub Profile
@hgmiguel
hgmiguel / download.rds.logs.sh
Last active July 13, 2017 14:18
Download rds log file
for i in `aws rds describe-db-log-files --db-instance-identifier ${INSTANCE} --output text | awk '{print $3}' | sed '$d' ` ; do
FILE=`basename ${i}`
if [ ! -e ${INSTANCE}/${FILE} ]; then
aws rds download-db-log-file-portion --db-instance-identifier ${INSTANCE} --log-file-name ${i} --output text > ${INSTANCE}/${FILE}
fi