Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save florin-andrei-curbside/d5b235d8d370ae39b74c42a9c6dbadd1 to your computer and use it in GitHub Desktop.
Save florin-andrei-curbside/d5b235d8d370ae39b74c42a9c6dbadd1 to your computer and use it in GitHub Desktop.
describe active reserved instances in EC2
#!/usr/bin/env bash
aws --region=${reg} ec2 describe-reserved-instances \
--filters Name=state,Values=active \
--query 'ReservedInstances[].[ReservedInstancesId, InstanceTenancy, InstanceType, InstanceCount]' \
--output=table
# remove --region=${reg} if you only need the default region
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment