Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

memDBCurrentGen RDS types get wrong or no pricing #38

Open
20goto10 opened this issue Apr 9, 2014 · 0 comments
Open

memDBCurrentGen RDS types get wrong or no pricing #38

20goto10 opened this issue Apr 9, 2014 · 0 comments

Comments

@20goto10
Copy link

20goto10 commented Apr 9, 2014

For types db.m2.xlarge, db.m2.2xlarge, db.m2.4xlarge, and db.cr1.8xl the pricing gem is not correctly identifying the on-demand multi-AZ prices. The gem's single-AZ prices get overwritten by the correct multi-AZ ones, while the gem's multi-AZ prices are never populated.

I was able to fix this by adjusting line 254 of amazon-pricing.rb --

          if url.include?("multiAZ")
            is_multi_az = true
          else
            is_multi_az = is_multi_az? type["name"]
          end              

The URL include? hack replaces the Oracle-only URL hack that was already there. I've verified that this fixes on-demand pricing for these instance types, but I haven't checked it against the other rate types as that's outside my concern. But I hope someone can replace this hack with something a little more elegant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant