Open dacamp opened 10 years ago
An exception is raised when attempting to fetch RDS standard and multi-az data:
AWSPricing::Base.base_uri + AWSPricing::RDS::RDS_BASE_URL + 'standard-deployments.json' => "http://aws.amazon.com/rds/pricing/mysql/pricing-standard-deployments.json"
1.9.3p484 :003 > AWSPricing::RDS.standard MultiJson::LoadError: 795: unexpected token at '<!DOCTYPE HTML>
It's the actual URL that's invalid, so different ruby versions shouldn't matter. I am running 1.9.3 however.
I haven't spent much time on this, but even the EC2 url endpoints look deprecated and at risk to fall off the map at any time.
> AWSPricing::Base.base_uri + AWSPricing::EC2::EC2_BASE_URL + 'on-demand-instances.json' => "http://aws.amazon.com/ec2/pricing/pricing-on-demand-instances.json"
$ curl -I -L http://aws.amazon.com/ec2/pricing/pricing-on-demand-instances.json [...] HTTP/1.1 301 Moved Permanently Location: https://a0.awsstatic.com/pricing/1/deprecated/ec2/pricing-on-demand-instances.json [...]
Thanks for the report and looking into this. Unfortunately it appears Amazon has moved to JSONP for most pricing data other than EC2 (so far). I'll see what I can do about moving the library over to that.
An exception is raised when attempting to fetch RDS standard and multi-az data:
It's the actual URL that's invalid, so different ruby versions shouldn't matter. I am running 1.9.3 however.
I haven't spent much time on this, but even the EC2 url endpoints look deprecated and at risk to fall off the map at any time.