Skip to content

Instantly share code, notes, and snippets.

@jhmartin
Created August 26, 2025 17:48
Show Gist options
  • Save jhmartin/61d12082777b0f919142214957f1f77a to your computer and use it in GitHub Desktop.
Save jhmartin/61d12082777b0f919142214957f1f77a to your computer and use it in GitHub Desktop.
Get EC2 baseline bandwidth
function ec2bw_func() {
aws ec2 describe-instance-types --filters "Name=instance-type,Values=$1.*" --query "InstanceTypes[].[InstanceType, NetworkInfo.NetworkPerformance, NetworkInfo.NetworkCards[0].BaselineBandwidthInGbps] | sort_by(@,&[2])" --output table
}
alias ec2bw=ec2bw_func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment