Live data from Hacker News

Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

npmjs.com

21–30 of 56 posts

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#21
post #20

Is it common to have a dev environment on AWS? I just use it for production and maybe staging. Staging is scheduled to run during office hours.

My company tasked me to mad dash their dev environment to AWS. Why? Because “cloud”, and perceived less risky than moving QA and Prod first.

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#22
post #20

Is it common to have a dev environment on AWS? I just use it for production and maybe staging. Staging is scheduled to run during office hours.

I guess depends on the size of the company. How else would you constantly test integrations between different services? Especially if some services can't be easily ran on the laptop.

Also if you add terraform/ansible and all that jazz to the table. Where else? Infra team needs dev/stage as well.

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#23

Just published a tiny CLI utility to save some bucks on AWS development environment while I'm not really working. https://github.com/aramalipoor/aws-cost-saver The idea is to stop/shutdown any resources (such as EC2 instances, RDS databases, ECS tasks, etc.) when you're done for the day and restore them back up next time you continue. Currently it's in a very early stage, a hobby side-project :) Ideally I'm thinking…

Im very interested in learning about your work flows, like how does a typical day look like? I do all my work on a local pc and only use servers for production. So im interesting in how/why you use the cloud stack

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#24
It looks like a nice tool doing it's job well :-) I'd also consider services like provisioned DynamoDB tables or Kinesis streams in this context because there you can also waste lots of money depending on your setup. For example, you could decrease the provisioned read/write capacity for a DynamoDB table or decrease the shards of a Kinesis stream over night. I've discussed these topics in a blog post, in the context of a CloudFormation stack, if anyone's interested: https://www.sebastianhesse.de/2018/04/22/shut-down-cloudform...

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#25
post #23

Just published a tiny CLI utility to save some bucks on AWS development environment while I'm not really working. https://github.com/aramalipoor/aws-cost-saver The idea is to stop/shutdown any resources (such as EC2 instances, RDS databases, ECS tasks, etc.) when you're done for the day and restore them back up next time you continue. Currently it's in a very early stage, a hobby side-project :) Ideally I'm thinking…

Im very interested in learning about your work flows, like how does a typical day look like? I do all my work on a local pc and only use servers for production. So im interesting in how/why you use the cloud stack

How do you test or develop against cloud resources like ECS using a local PC?

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#26
post #24

It looks like a nice tool doing it's job well :-) I'd also consider services like provisioned DynamoDB tables or Kinesis streams in this context because there you can also waste lots of money depending on your setup. For example, you could decrease the provisioned read/write capacity for a DynamoDB table or decrease the shards of a Kinesis stream over night. I've discussed these topics in a blog post, in the context…

Thanks for sharing your experience. Both of them sounds like great ideas, will add them to ToDo right away :)

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#28
post #20

Is it common to have a dev environment on AWS? I just use it for production and maybe staging. Staging is scheduled to run during office hours.

I guess depends on the size of the company. How else would you constantly test integrations between different services? Especially if some services can't be easily ran on the laptop. Also if you add terraform/ansible and all that jazz to the table. Where else? Infra team needs dev/stage as well.

Localstack can get you pretty far.

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#29

I find it price gouging that AWS doesn't already implement this on their own within their pricing structure and that you need a 3rd party tooling to do this.

AWS Instance Scheduler is an official AWS Solution: https://aws.amazon.com/solutions/implementations/instance-sc...

It allows you to create automatic start and stop schedules for your Amazon EC2 and Amazon RDS instances. It uses a combination of CloudWatch/Lambda/DynamoDB to check against tagged instances.

Re: Show HN: Tiny CLI to save AWS costs in dev environments when you're sleeping

#30

Earlier quoted context omitted.

This is amazing.... Edit: I wonder if you could put this inside of a lambda with just a role.

Thanks. Agree with you, having it in a Lambda with a scheduled trigger or even manual trigger will be really useful.

Or an API gateway. I have something similar (though very bespoke for me) that has a simple API Gateway web page as it's front-end. It also opens up a firewall entry for my IP so I can connect to the machine.

Depending on my mood I either use the web page or some simple curl aliases to start and stop an instance.

Post reply on HN