Skip to content

Instantly share code, notes, and snippets.

View CollinAlpert's full-sized avatar
🤓
It's not a bug, it's a feature.

Collin Alpert CollinAlpert

🤓
It's not a bug, it's a feature.
View GitHub Profile
@gholker
gholker / download-aws-logs.sh
Last active August 26, 2024 14:00
Script that uses the aws cli to download cloudwatch logs to a file
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
LOG_GROUP_NAME=""
LOG_STREAM_NAME=""
REGION=""
OUTPUT_FILE="$(date +"%Y%m%d").log"