Live data from Hacker News

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

npmjs.com

31–40 of 56 posts

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

#31
post #25
post #23

Earlier quoted context omitted.

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?

https://github.com/localstack/localstack

Though I find a stronger argument in using containerisation to ensure an identical application run-time environment no matter the infra it’s running on.

If we are talking about infra engineering, then sure. That’s where I find localstack helps

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

#32
If you're using IaC and have it set up in a CI/CD pipeline, you could also achieve the same by having a cronjob set a flag outside of work hours, and use conditionals in your IaC based on the value of that flag (e.g., for Terraform `count = var.scale_down ? 0 : 1`)

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

#33
post #25
post #23

Earlier quoted context omitted.

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?

Ok, I don't know how else to ask and I'm seriously not trying to be an arse but how do you? I'm genuinely interested as it's something I've been struggling with myself lately.

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

#34
post #25

Earlier quoted context omitted.

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

https://github.com/localstack/localstack Though I find a stronger argument in using containerisation to ensure an identical application run-time environment no matter the infra it’s running on. If we are talking about infra engineering, then sure. That’s where I find localstack helps

What happens when you need 40 micro-services running to render your frontend?

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

#35

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…

Are you aware of cloud custodian out of Capital One? [0] Does this and much, much more (like delete noncompliant security groups, etc).

[0]: https://cloudcustodian.io/

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

#36

Earlier quoted context omitted.

https://github.com/localstack/localstack Though I find a stronger argument in using containerisation to ensure an identical application run-time environment no matter the infra it’s running on. If we are talking about infra engineering, then sure. That’s where I find localstack helps

What happens when you need 40 micro-services running to render your frontend?

You ditch all the microservices and develop the app like a normal human being.

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

#37
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.

Yes but in those cases would you really be looking to be Frugal like this? I figured the underlying assumption is that this is a tip for regular folks

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

#38
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.

Ops people need a Dev environment to test, especially for Infrastructure as code. With an increased connectivity between developer code and Infrastructure, I prefer my team finds out everything in a development environment that's exactly like staging and prod. That way deployment to staging is proof of the IAC change. There's less risk.

This also lets developers try out new services in the cloud without impacting the staging... (This is on top of a sandbox for research, but integration of research takes time and an environment too)

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

#39
post #25
post #23

Earlier quoted context omitted.

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?

I would like to know how and why you use resources like ECS. et.al. There reason why I do not like to use cloud/serverless is because I find debugging is much easier on a local computer or a server I have root/metal/hardware access to. And that serverless have a very slow iteration rate, it can take minutes just to run a simple test that would be instant locally.

The reason I'm asking is because on my free time I'm developing a cloud IDE but I'm having trouble understanding the market. I beleave cloud dev services will be a huge market. But I don't understand how people use it practically in their dev setup.

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

#40
post #25
post #23

Earlier quoted context omitted.

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?

docker-compose and kubernetes
Post reply on HN