1

I am querying Reserved Instances using Amazon's Java SDK. I am getting all reserved Reserved Instances except the one with scope as "Region".

I have raised an issue on Amazon's Java SDK code. After analysis it is found that Amazon service itself is not returning those Reserved Instances.

Can anyone offer advice on how to obtain information about Reserved Instances with a scope of Region?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • The [AWS Command-Line Interface (CLI)](http://aws.amazon.com/cli/) has a [describe-reserved-instances](http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-reserved-instances.html) API call that includes a field for `Scope`. Could you try that and see whether it is returning the information you expect? – John Rotenstein Mar 30 '17 at 21:40
  • John, aws cli is returning reserved instances with scope "Region". I tried with(filter with "Region" scope) and without filters, both commands are returning RI with scope region. – sreekanth guru Apr 02 '17 at 05:40
  • Just to clarify... Are you saying that the AWS CLI returns the correct information, but the same API call via the Java SDK returns *different* information (that is, some RIs missing)? – John Rotenstein Apr 02 '17 at 09:15
  • Yes. Reserved Instances having scope as Region are missing. – sreekanth guru Apr 02 '17 at 17:23
  • Worst case, raise a bug on the [Github project](https://github.com/aws/aws-sdk-java). – John Rotenstein Apr 03 '17 at 02:20
  • I had raised an [issue](https://github.com/aws/aws-sdk-java/issues/1080#issuecomment-289496779). After analyzing wire trace, Kyle mentioned that Aws service which is serving the request is not returning expected result. – sreekanth guru Apr 03 '17 at 05:22
  • That's very strange, because the AWS CLI is probably making the same API call. The information returned should be the same, even though they came from different API clients. – John Rotenstein Apr 04 '17 at 04:01

0 Answers0