News for hackers. Stuff that matters.
Re:Show HN: Tiny CLI to save AWS costs in dev environments w... by stekern on Saturday August 22, 2020 @06:37PM (#24247835)
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 w... by aramalipoor on Sunday August 23, 2020 @05:35AM (#24250757)
There were a few reasons why I couldn't use IaC:

1) Using conditionals to achieve this usually makes terraform unmanageable specially if your terraform is complex.

2) Sometimes you'd need to do more complex steps to save some money, for example in case of ElastiCache you'd need to snapshot/delete/create.

3) Using terraform in a Lambda to schedule this was not straightforward (in my current company) so I gave up making it work :D