Show HN: Curl https://ec2.shop
41–50 of 84 posts
Re: Show HN: Curl https://ec2.shop
#42Re: Show HN: Curl https://ec2.shop
#43Can I be sure that the prices from this endpoint are accurate (i.e. if Amzn changes the prices, this endpoint will reflect that change)? Off-topic: if I request a spot instance, is there any way (API/cli) to know how much Amzn charges me every hour for that instance?
It's definitely possible and not very challenging, but the API Documentation for prices was pretty weak when I built it (a year or two ago, written in Go if it makes a difference). The google cloud prices API was similarly gross. It was kinda fun, but I wouldn't enjoy maintaining that code. In reality, it turns out that $/hour isn't a super straightforward metric (there are many dimensions that go into it), so it's not super straightforward to query.
Re: Show HN: Curl https://ec2.shop
#44 curl -s https://ec2.shop | grep 't2'
would work, but curl -s https://ec2.shop | grep 'm4'
does not? Both commands work if I write the curl result to a file, but when I pipe from curl, the pattern `m4` matches all instances of the number 4.Re: Show HN: Curl https://ec2.shop
#45Is this open sourced? I personally try looking into implementing a curl "interface" to one of my projects, realised that it actually need to check the user-agent (of curl and a plethora of curl alternatives) which I find kind of weird...
https://github.com/yeo/ec2.shop
The reason it check `curl` agent is because it share the same endpoint (root url) for both of `curl` page and browser version(the one with dropdown, grid etc)
Re: Show HN: Curl https://ec2.shop
#46Could you update the `...&filter...` example to wrap the URL in quotes so that the `&` isn't interpretted by the shell as sending the process to the background?
Re: Show HN: Curl https://ec2.shop
#47Since I cannot edit original comment, yes, the site is open source: https://github.com/yeo/ec2.shop
Re: Show HN: Curl https://ec2.shop
#48Can I be sure that the prices from this endpoint are accurate (i.e. if Amzn changes the prices, this endpoint will reflect that change)? Off-topic: if I request a spot instance, is there any way (API/cli) to know how much Amzn charges me every hour for that instance?
I'm going to add spot instance. Will just need to figure out what URL AWS is fetching
Re: Show HN: Curl https://ec2.shop
#49 diff -u Re: Show HN: Curl https://ec2.shop
#50Very neat. Anyone know why curl -s https://ec2.shop | grep 't2' would work, but curl -s https://ec2.shop | grep 'm4' does not? Both commands work if I write the curl result to a file, but when I pipe from curl, the pattern `m4` matches all instances of the number 4.