Useful Python scripts for various operational & administrative tasks
AWS Lambda function for EC2 instance management with HTTP health checks. Provides start/stop functionality with integrated health monitoring and SNS notifications.
Usage: Deploy as AWS Lambda function with environment variables (INSTANCE_ID, URL, SNS_TOPIC_ARN)
Converts Excel (.xlsx) files to CSV format.
Usage: python3 convert_xlsx_to_csv.py <xlsx_file> <sheet_name>
Sends HTML emails with embedded images using ssmtp. Reads message data from a Redshift database and creates MIME-formatted emails.
Usage: Configure database connection and run script
Automated script to login to a web service and download CSV files for a date range. Handles authentication and retry logic.
Usage: Configure login credentials and date range, then run script
Script to rename files in an S3 bucket using search and replace patterns.
Usage: python3 rename_s3_files.py <s3_bucket> <s3_prefix> <search>=<replace> <search>=<replace>
Uploads large files to S3 using multipart upload with parallel processing for improved performance.
Usage: Configure bucket name, file path, and target key, then run script