Teevity / ice

AWS Usage Tool
2.85k stars 434 forks source link

how to set Reserved Instance's Region? #296

Closed zhangsimingshannonai closed 4 years ago

zhangsimingshannonai commented 4 years ago

I'm using aws-china, and I have EC2 in to region: cn-north-1 and cn-northwest-1. In my scene, my s3 billing bucket and work bucket is in cn-north-1, but I have to region for ice to fetching Reserved Instance price(cn-north-1 and cn-northwest-1)

I see the Endpoint in code: https://github.com/Teevity/ice/blob/eb33426da1c5671f756c835a239ada8c8743a366/src/java/com/netflix/ice/basic/BasicReservationService.java#L154

How to ? Please help me, thanks.

zhangsimingshannonai commented 4 years ago

how to set region.name? S3 endpoint's region is set by env "EC2_REGION"