Additional workarounds, ad-hoc scripts, and various tools to compensate for my inadequacy as an AWS admin.
Supporting script used by the EBS scripts below. Returns the list of currently available AWS regions.
Lists EBS Volumes and Snapshots in:
- CSV format (for automation)
- Human-readable format (for interactive review)
Supports single region or all regions.
Deletes orphaned (unused) EBS Volumes or Snapshots.
Usage:
- Delete by specific Volume or Snapshot ID
- Delete all in a specific region
- Delete all across all available regions
Safe checks included to prevent deleting in-use volumes or incomplete snapshots.
Personal workaround for generating temporary AWS credentials using MFA.
- Reads
~/.aws/configto find the MFA serial device - Uses
aws sts get-session-token - Creates a new
*-mfaprofile in~/.aws/credentials - Optional autocomplete support for ZSH
ZSH tab-completion script for use with aws-generate-mfa-token.
- Pulls profile names from
~/.aws/config - Auto-completes
aws-generate-mfa-token <profile>
Place it in your $fpath or source it in .zshrc.
Creates two dummy systemd services that continuously write to separate filesystems.
Useful for testing:
- EC2 EBS volumes
- Filesystem behavior
- Any use case where you need persistent write activity from a running process
The services simulate continuous file writes without interruption.
- Bash 4+
awscliv2+jq
Ensure your environment includes a properly configured ~/.aws/config and ~/.aws/credentials.
These tools are created for personal or internal use only. Use at your own risk. No warranties.