Urgent.News

What's breaking now, across thousands of outlets.

Tech

CloudFront VPC Origin returns 504? Your origin's security group is lying to you

I built a clean private-ingress edge on AWS: CloudFront out front for TLS, WAF, and Shield; a private Network Load Balancer as the origin; no public load balancer anywhere. Everything provisioned without error. Then the first request came back 504 Gateway Timeout . The fix was a single security-group rule. The reason is a mental model about CloudFront VPC origins that's easy to get wrong, so it's…

When building a private-edge architecture on AWS with CloudFront, a Network Load Balancer, and no public load balancer, a 504 Gateway Timeout error can occur. The issue lies in the security group of the Network Load Balancer, which incorrectly limits inbound traffic to the VPC CIDR range. CloudFront VPC origins connect to the origin from CloudFront's public, origin-facing IP ranges, not from within the VPC.

Therefore, the security group should allow traffic from CloudFront's public origin-facing IP ranges, which can be done by referencing the managed prefix list "com.amazonaws.global.cloudfront.origin-facing" instead of the VPC CIDR range. Once this change is applied, the CloudFront VPC origin should function correctly, and the 504 Gateway Timeout error will be resolved.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to Scrape Tweets from X (Twitter) Without Paying for Empty or Fake Results

Disclosure: I built the X Twitter Scraper used in this guide and earn from its usage on Apify. If you have ever paid for a batch of scraped tweets and opened the file to find half of it empty…

  • Open X Twitter Scraper Actor in Apify Console to start scraping.
  • Choose sources like search terms, profiles, or tweet links with filters.

Building an Offline-First POS That Stays Consistent With an Online Store

We just shipped a Windows point of sale for StoreFlux (a headless commerce backend) that keeps working with no internet connection and never drifts out of sync with the online store it's attached to.

  • Offline-first POS syncs with online store without internet.
  • Local SQLCipher database records all register actions.
  • Server processes unique client-generated IDs safely.

Parsing WhatsApp chat exports: what real files taught me

A WhatsApp "Export chat" file looks easy: one line per message, a date, a name, some text. I wrote a parser for it, then ran it on 28 real exports from public open-source repos plus generated files…

  • WhatsApp chat exports contain ambiguous date formats based on phone settings at export time.
  • Export files lack time zone information, requiring user confirmation and indication.
  • Attachments and invisible characters in exports may cause parsing issues.

More from Monday 2 November →