So here's an @awscloud Lambda@Edge problem that's haunted me for ages. A thread, as I thrash and attempt to learn the things I don't know...
Curling the official @awscloud status page takes .3 seconds to complete. If I curl stop.lying.cloud, that takes 23 seconds to complete. And it absolutely should not.
The domain points to a CloudFront distribution. That distribution invokes a Lambda function that returns HTML with my suitable modifications to the payload.
"Okay Corey, you probably write code like crap."

Sure I do, but @epsagon shows that it's not the code that's hanging at all.
Unfortunately I can't get tracing to work in edge Lambdas (they don't support layers) so I'm at a bit of a loss. Let's look at the CloudFront distribution logs.
Man are these wordy. Have yourself a little Github gist, as a treat: gist.github.com/QuinnyPig/cb77…
Given that it's over 20 seconds, it *feels* like there's a timeout that eventually gives up, returns what it has--and that renders as what I want. But I'm mystified as to where that's happening.
I’m gratified so far that everyone’s suggestions have been red herrings. I was kinda worried it’d be “a checkbox” or something. I may have to open an @AWSSupport ticket.
My assistant is almost as confused as I am.
Just to call this out explicitly: it's a near-certainty that the bug is on my side, either with code or configuration. I'd be *shocked* if this were @awscloud's fault in any meaningful way past "it's hard to observe what's going on with Lambda@Edge functions."

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Corey Quinn

Corey Quinn Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @QuinnyPig

10 Dec
It's the AWS infrastructure keynote with Peter DeSantis, and this is my #reQuinnvent livetweet thread. Like an @awscloud groundhog, this is the one day a year he comes out of the data center to tell us what he's seen, look for his shadow, and use the bathroom.
♪ ♫ ♬ He's coming out of his cage, and he's feeling just fine... ♪ ♫ ♬
#reinvent
Music in a minor key about adversity is a great choice to kick off a keynote about infrastructure. Hardware is always depressing; it's a real kick in the rack nuts. #reinvent
Read 50 tweets
9 Dec
And now the Data Analytics leadership session at #reinvent--oh what the damn hell. @rahulpathak didn't dress up for our podcast recording nearly so well!
This entire slide also applies to the @awscloud bill.
"Here's how Moderna uses our services to fight the pandemic, so you can feel better about using those same services to show ads to people."
Read 14 tweets
9 Dec
And now I watch @marknca's talk: "Mistakes Were Made." virtual.awsevents.com/media/t/1_q68y…
TrendMicro: "Hey Mark, why did you expense $40K of streaming equipment but then record your talk while having your driver's license photo taken?"
Now taunting the entire concept of Best Practices. Better known as "whatever the opposite of what Corey does."
Read 12 tweets
9 Dec
So let's talk about the sad part of #reinvent-done-virtual: the sponsor hall.

"Wait, there's a sponsor hall?"

Sure there is! Let's go visit!
Log into the #reinvent site. In the far upper left is an unassuming three line "hamburger."
If you click it, it expands into a full sidebar menu. Midway down, you'll see a "Sponsors" option.
Read 16 tweets
8 Dec
What the... it's not April 1st. @CentOSProject is ending support for CentOS 8 years early.

blog.centos.org/2020/12/future…
Don't worry, I know where to escalate this to. Image
This is how you learn to do Linux admin by the way. You move from channel to channel on IRC as you get redirected. Image
Read 6 tweets
8 Dec
Now Steve Schmidt's Security Leadership session.
Okay, this resonates massively.
Skipping past the recap of existing security services. There are a LOT of them. If you enable all of them it will cost you more than a data breach would. #reinvent
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!