Skip to content

Instantly share code, notes, and snippets.

@kazgoto
Last active October 28, 2020 09:46
Show Gist options
  • Save kazgoto/54ee0bdb50b41ce8ee8726a34729477d to your computer and use it in GitHub Desktop.
Save kazgoto/54ee0bdb50b41ce8ee8726a34729477d to your computer and use it in GitHub Desktop.
Thirdparty RI を調べるワンライナー with Docker
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'
@kazgoto
Copy link
Author

kazgoto commented Oct 27, 2020

Thirdparty RI を調べるワンライナー。インスタンスタイプ指定しないといけないのがツラい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment