Last active
October 28, 2020 09:46
-
-
Save kazgoto/54ee0bdb50b41ce8ee8726a34729477d to your computer and use it in GitHub Desktop.
Thirdparty RI を調べるワンライナー with Docker
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
docker run --rm -i -v ~/.aws:/root/.aws amazon/aws-cli ec2 describe-reserved-instances-offerings \ | |
--profile kaz@cloudpack.jp --instance-type m1.large \ | |
--offering-class standard \ | |
--product-description "Linux/UNIX" \ | |
--instance-tenancy default \ | |
--filters Name=marketplace,Values=true | jq -r '.ReservedInstancesOfferings[] | | |
[.OfferingClass, .ProductDescription, .InstanceType, .OfferingType, .FixedPrice, .Duration, .ReservedInstancesOfferingId] | @csv' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thirdparty RI を調べるワンライナー。インスタンスタイプ指定しないといけないのがツラい。