perun icon indicating copy to clipboard operation
perun copied to clipboard

Price Calculation - Improvements

Open afronski opened this issue 7 years ago • 3 comments

Currently AWS API when asked for a price estimation for a CloudFormation template returns link to the AWS Calculator which is not exactly we want. 😉

We would like to have following functionality:

  • Price should be extracted from the web page (AWS calculator) returned from API.
    • With distinction based on resource type.
  • Summing up multiple stacks together in a project.
    • With distinction based on resource type or stack.

afronski avatar Oct 18 '17 07:10 afronski

@afronski Unfortunately, the site pointed by Amazon is dynamically loaded and can't be easily parsed just by issuing GET. My idea was to run web page via headless browser; for Go two projects tended to be considerable:

surf does not cope with this site (with JavaScript particularly).

webloop has dependencies on WebKitGTK+ (=> pkg-config and so). From my perspective, this will unduly complicate compilation/packaging process.

morfeush22 avatar Nov 24 '17 09:11 morfeush22

@morfeush22 Thanks! :smile: Indeed - it sounds cumbersome, however - I will not ditch this feature completely, because there is Price List API - it won't be exact quote, but rough estimate: https://aws.amazon.com/blogs/aws/new-aws-price-list-api.

afronski avatar Nov 24 '17 15:11 afronski