from Hacker News

Show HN: Burrow is a globally distributed, serverless HTTP proxy

by myzie on 7/27/24, 4:10 PM with 11 comments

  • by mlhpdx on 7/29/24, 9:09 PM

    The amount of duplication in `main.tf` (copy/pasta for each region) is shocking, but I'm not a Terraform user -- is that normal? It also seems problematic for re-use since not all accounts have those regions enabled. Perhaps using something like the below to discover enabled regions at deploy time would make it more "consumable" by other folks:

      aws account list-regions \
        --region-opt-status-contains "ENABLED" "ENABLED_BY_DEFAULT" \
        --no-paginate \
        --query "Regions[].RegionName" \
        --output text
    
    That's the approach I've taken with SAM/Cloudformation deployments[1].

    [1] https://github.com/mlhpdx/email-origin/blob/main/scripts/dep...

  • by kjok on 7/29/24, 7:08 PM

    Very cool. Is there a reason to choose AWS lambda over other tech (say Cloudflare workers)?
  • by jftuga on 7/30/24, 1:20 AM

    Cool idea. What was your initial use case for creating this?

    Also, are the Function URLs publicly accessible? If so, what safe guards are there to prevent abuse?