Last active
August 18, 2016 23:58
-
-
Save florin-andrei-curbside/d5b235d8d370ae39b74c42a9c6dbadd1 to your computer and use it in GitHub Desktop.
describe active reserved instances in EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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