News for hackers. Stuff that matters.
Re:Show HN: Tiny CLI to save AWS costs in dev environments w... by jen20 on Saturday August 22, 2020 @04:20PM (#24246962)
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 w... by ununoctium87 on Saturday August 22, 2020 @06:27PM (#24247777)
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 w... by hyeomans on Saturday August 22, 2020 @07:08PM (#24248010)
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 w... by smabie on Saturday August 22, 2020 @08:19PM (#24248432)
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 w... by pests on Saturday August 22, 2020 @10:09PM (#24248986)
That's an answer to a question he didn't ask.
Re:Show HN: Tiny CLI to save AWS costs in dev environments w... by z3t4 on Saturday August 22, 2020 @08:35PM (#24248510)
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 w... by malwrar on Saturday August 22, 2020 @11:46PM (#24249366)
I use it (and similar tech) because I don't want to think about individual boxes at scale, rather instances of an application. Containers + orchestration allow me to develop and test in the exact same environment my apps will be in in prod, which allows me to mostly remove the hardware and OS as a variable that could affect its runtime behavior. They also make it easier to spin up a local copy of my services' runtime environments for testing, as I need only describe it in a simple yaml file and spin it up w/ docker-compose in a single command.

I found at first testing was arduous, but you learn to adapt. In my case, I increased the amount of debug logs my application throws (can also be useful to enable in prod when trying to hunt down an issue) and invested time in creating unit/integration tests that run outside of the container/lambda to validate specific paths/features. Worst case there's always docker exec and language-specific debugging when I want to dig in manually.

I'm still pretty skeptical about serverless (I mostly use it for cloud-specific automation), but as much as people like to shit on Docker it's been pretty great to use from an ops perspective. I interpret most negativity about it as curmudgeonly reactions to the admittedly excessive hype in the technologies, with some fairly pedantic complaints about the (imo minimal) overhead such technologies incur thrown in as an uninteresting justification.

Re:Show HN: Tiny CLI to save AWS costs in dev environments w... by aramalipoor on Sunday August 23, 2020 @03:51AM (#24250336)
Posted an answer to another similar question: https://news.ycombinator.com/item?id=24250329 hope it helps when developing with your IDE :)
Re:Show HN: Tiny CLI to save AWS costs in dev environments w... by takeda on Sunday August 23, 2020 @01:11AM (#24249679)
Hmm... ECS is for running docker containers.

If they don't work the same on local computer than on ECS perhaps docker failed to deliver what promised?

BTW: I absolutely hate debugging in AWS, it's such a nightmare, docker was the first thing that made thing hard even on premises, but AWS pushed things to 11.

I think the key to sanity if you have to use public cloud is to put extra effort so you discover all bugs locally before you deploy to public cloud. Which probably is not a bad thing.

Re:Show HN: Tiny CLI to save AWS costs in dev environments w... by krono on Saturday August 22, 2020 @06:55PM (#24247934)
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 w... by lfuller on Saturday August 22, 2020 @08:56PM (#24248628)
docker-compose and kubernetes