News for hackers. Stuff that matters.
Re:Show HN: Flashcards to learn AWS skills by vishnugupta on Monday May 24, 2021 @11:45AM (#27265710)
At this point AWS has gotten so complex that one has to jump through a dozen hoops to get the simplest of things done.

To scale up our reporting I thought it’s a good idea to offload report generation to a lambda function. Read from MySQL, dump into S3 and mail a link to that S3 file, make the link expire after couple of hours. Reasonably simple enough. But by God was it painful!! IAM is a rabbit hole, now later VPC restrictions on top and couple that with terribly organized document it makes no fun at all.

I get the need for all those layers of security but without well organized document everyone has to go through the ordeal. What we need now is plethora of how-tos for these common architectural patterns.

Re:Show HN: Flashcards to learn AWS skills by jrockway on Monday May 24, 2021 @03:26PM (#27268619)
Sometimes I wonder if the old world where you had to buy computers and drive to the datacenter at 3 in the morning to replace dead hard drives was really so bad.

I guess it was really so bad. Everything you have to build for yourself in the cloud is something you probably needed in your self-hosted stack -- a directory of users, permissions (and escalation), firewall rules, SSH key material, etc. I feel like no matter what production stack you choose, you're always in that "6 of one, half-dozen of another" state. Lots of stuff to interfere with getting your code out there and keeping it running.

(My real question is why the cloud providers don't offer these things for you -- they give you the tools to build solutions, not solutions. But I just want to work on my app. I wonder why things like App Engine never really caught on. I guess being opinionated drives more people away than it brings in with the promise of more simplicity, though to some extent App Engine was too simple, which is always bad. Meanwhile, what cloud providers offer certainly lets you bring your own opinion and build it out yourself. I wish there was a comfortable middle ground.)

Re:Show HN: Flashcards to learn AWS skills by bigyikes on Monday May 24, 2021 @03:45PM (#27268838)
Haven’t used it in years, but Heroku was really great in this respect. It was very easy to just focus on making a good app instead of trying to configure everything myself.

I guess there’s probably not much demand for this kind of thing at large scales.

Re:Show HN: Flashcards to learn AWS skills by hnzix on Monday May 24, 2021 @11:22PM (#27272281)
Heroku can be a hard sell to mgmt because of the cost, but if it's framed in terms of "this means you don't need to pay for two AWS cloud architects to be on call" then it's a much easier pitch.
Re:Show HN: Flashcards to learn AWS skills by startledaxolotl on Tuesday May 25, 2021 @10:45AM (#27277468)
>they give you the tools to build solutions, not solutions.

Hmmm, well the first generation of a cloud providers offerings has to be the bare necessities (EC2, VPC, IAM RDS etc). Then you can start providing a second gen of services that use the first gen, like AWS's ECS, and then a third gen like Fargate.

Re:Show HN: Flashcards to learn AWS skills by jfoster on Monday May 24, 2021 @04:46PM (#27269499)
I think the primary concerns with what App Engine started out as were flexibility and vendor lock-in.

Feels like it is a very solvable problem, though. Only a matter of time.

Re:Show HN: Flashcards to learn AWS skills by saargrin on Tuesday May 25, 2021 @04:31AM (#27274381)
im working as a devops for a security conscious on-prem startup and .. oh boy it IS really so bad
Re:Show HN: Flashcards to learn AWS skills by startledaxolotl on Tuesday May 25, 2021 @10:46AM (#27277487)
subtly provide management with a copy of the phoenix project
Re:Show HN: Flashcards to learn AWS skills by shard on Monday May 24, 2021 @03:33PM (#27268686)
Not knowing AWS, this sub-thread reads like a real-life version of the Microservices sketch: https://youtu.be/y8OnoxKotPQ
Re:Show HN: Flashcards to learn AWS skills by corpMaverick on Monday May 24, 2021 @07:07PM (#27270752)
LOL. That is not a sketch. I swear it is real life in the back end world. The good news is that now we have Micro front ends for the enjoyment of the UI engineers.
Re:Show HN: Flashcards to learn AWS skills by GSGBen on Monday May 24, 2021 @08:05PM (#27271181)
For anyone skimming the comments and considering skipping this video: do yourself a favor and don't. Krazam's tech comedy is unparalleled.
Re:Show HN: Flashcards to learn AWS skills by arolihas on Monday May 24, 2021 @09:10PM (#27271606)
The day in the life one was amazing as well.
Re:Show HN: Flashcards to learn AWS skills by celim307 on Monday May 24, 2021 @09:32PM (#27271738)
It hit too close to home. It described me and everyone I knew age 22 - 30 in tech to a T. We really aren’t as original as we’d like to believe
Re:Show HN: Flashcards to learn AWS skills by arolihas on Monday May 24, 2021 @10:16PM (#27271963)
The lack of originality hurts I guess. What was more biting was the faux productivity, tech addiction, and social isolation and alienation of such a mundane daily routine.
Re:Show HN: Flashcards to learn AWS skills by noir_lord on Monday May 24, 2021 @12:11PM (#27266083)
This mirrors my experience working with Lambda's - I went the "deploy docker images as lambda's" route and that was mostly OK (I mean it's just node/sharp etc) but the actual setup up - good god, I swear some of that documentation if read aloud would summon Cthulu.
Re:Show HN: Flashcards to learn AWS skills by Aeolun on Monday May 24, 2021 @11:54PM (#27272435)
I recently did this with API gateway v2. The documentation basically stops at ‘there is this field, and it is a string’.

I mean, fantastic, but what does this resource even represent, and what do I put in the string? It’s clearly an enum.

Re:Show HN: Flashcards to learn AWS skills by yepthatsreality on Monday May 24, 2021 @12:49PM (#27266633)
Lock-in 101, build a system just as complex but tell the end user it’s easier.
Re:Show HN: Flashcards to learn AWS skills by sackerhews on Monday May 24, 2021 @01:36PM (#27267296)
I felt your pain when I read that.

If it's of any help, I can promise you that creating a Terraform configuration to set this up will improve your life, happiness and general well being in the future.

Yes, Terraform has a learning curve, but it's also a black magic effery for the cloud.

Re:Show HN: Flashcards to learn AWS skills by misiti3780 on Monday May 24, 2021 @04:46PM (#27269500)
second this, terraform is a game changer if you are using aws (or any of the other clouds, it supports multiple backends)
Re:Show HN: Flashcards to learn AWS skills by Aeolun on Monday May 24, 2021 @11:56PM (#27272448)
And if you plan to use Terraform, you might as well skip that step and go directly to Pulumi.
Re:Show HN: Flashcards to learn AWS skills by sackerhews on Friday May 28, 2021 @01:59PM (#27318526)
Hey, hadn't that a look before, thanks!

Yes, Terraform/HCL can sometimes feel like the instructions for the holy hand grenade.

Re:Show HN: Flashcards to learn AWS skills by whimsicalism on Monday May 24, 2021 @01:14PM (#27267012)
I think avoiding the console, getting a solid understanding of IAM and cloudformation are a good basis to build on.

AWS can definitely be poorly documented and buggy at times.

Re:Show HN: Flashcards to learn AWS skills by Lutger on Wednesday May 26, 2021 @02:11AM (#27286982)
It can be if you haven't tried any other of the big cloud vendors. In my experience, it's one of the best documented services I have ever used, especially considering it's so vast.
Re:Show HN: Flashcards to learn AWS skills by riffic on Monday May 24, 2021 @07:27PM (#27270916)
I always tell people "stay off AWS unless you or someone you're paying very well on your team holds an Associate-level certification at the very minimum". It's easy to get in over your head over there.
Re:Show HN: Flashcards to learn AWS skills by MonaroVXR on Monday May 24, 2021 @07:41PM (#27271013)
> you or someone you're paying very well on your team holds an Associate-level certification at the very minimum". It's easy to get in over your head over there.

I will never forget the story about the expert Amazon engineer that lost 80K USD.

Re:Show HN: Flashcards to learn AWS skills by drevil-v2 on Monday May 24, 2021 @07:42PM (#27271028)
Sounds like an interesting read. Link please.
Re:Show HN: Flashcards to learn AWS skills by MonaroVXR on Tuesday May 25, 2021 @09:55AM (#27276774)
Re:Show HN: Flashcards to learn AWS skills by fridif on Monday May 24, 2021 @11:55AM (#27265873)
A good starting point is elastic beanstalk, at least, but yes it is a big tangled web and one wonders why one is trying to copy netflix for a simple web app most of the time

if yoyr workload isnt simple though, then its time to pay the price until a better abstraction comes along ^.^

Re:Show HN: Flashcards to learn AWS skills by fakedang on Monday May 24, 2021 @11:48AM (#27265764)
There really ought to be sandbox "default" settings or templates that Firebase has for noobs, instead of configuring everything change by change. I still dread configuring IAM and now just resort to using one big EC2 instead of multiple services.
Re:Show HN: Flashcards to learn AWS skills by igotroot on Tuesday May 25, 2021 @03:05PM (#27280991)
I totally agree with you. A part of my duties is setting up logging from AWS to Splunk and there's so many gotchas and stumbling blocks that's it's infuriating to even attempt and follow best practices.

A great example is Cloudtrail. The best practice is to send your OrgTrail (an org-wide Cloudtrail) to a separate account for security reasons. Cool. Okay, sounds easy enough. The Splunk docs are useless for AWS, so consulting with YouTube, Reddit, etc is the go-to for this.

It's so much easier to just leave the OrgTrail logging into the management account it's not even funny.

Re:Show HN: Flashcards to learn AWS skills by KptMarchewa on Tuesday May 25, 2021 @07:24AM (#27275491)
>IAM is a rabbit hole, now later VPC restrictions on top

My idea is to build simpler system on top of cloud networking and IAM/permissions.

Why would I want to have networking between components that are permissioned to interact with each other, and the other way, why some app/lambda's service account have permission to interact with particular database, but be blacklisted on firewall? Have GUI on top to drag and drop "routes" between apps.

Of course, make it optional etc, but I think it would save tons of devops time for smaller organisations without audit requirements unlike fintechs, medical stuff etc.

Re:Show HN: Flashcards to learn AWS skills by properdine on Tuesday May 25, 2021 @12:39AM (#27272648)
Totally get what you mean. I'll pitch for either terraform or AWS CDK as good ways to make some of this plumbing less painful (they both have you describe the end state you want and then generate resources to get there).
Re:Show HN: Flashcards to learn AWS skills by jachee on Tuesday May 25, 2021 @01:38AM (#27273077)
Terraform is—as a colleague described it—a combination very-sharp-knife and fully-loaded foot-seeking gun. Very powerful, but also requires a sufficient amount of respect and care.

e.g. You’ve defined a nice, fully-functional end-state, which was generated n time ago, but now you need to make a change to that state, so you run your

    terraform plan
…and it wants to destroy your entire infrastructure and recreate it all from scratch just to e.g. add a new hostname to the certs generated by certmanager.

That may be okay, but you should probably measure at least 3 times before you cut.

Re:Show HN: Flashcards to learn AWS skills by dzonga on Monday May 24, 2021 @04:47PM (#27269506)
I ran into the same problem. kicked out s3 and ended up using seaweedfs. couldn't be happier. coding instead of reading aws documentation.