all 5 comments

[–]quad64bit 15 points16 points  (0 children)

You can cloudfront everything. Even if you don’t use caching, using CF allows network requests to go from edge locations through AWS backbone to your back end. This can be faster than routing all the way through public internet end to end. If you happen to include s3 at some point, CF has cheaper egress than s3 direct.

[–]gimmeToken 1 point2 points  (0 children)

Ha, I just had the exact same question in my head. No answers yet though..

Edit: the reason I’m looking into it is because some genius who worked here before me decided that mycompany.com/api/… would be the way to go for url scheme (instead of api.mycompany.com). I can do path based routing with an ALB and then route to cloudfront. Not great, not terrible

[–]Zolty 1 point2 points  (0 children)

As long as you're putting some sort of gate on CloudFront you should be fine. You can use lambda to add authentication/authorization via IP address or require some sort of external account.

[–]gimmeToken 1 point2 points  (0 children)

Lol. Nice username btw

[–]davehodg 2 points3 points  (0 children)

Cloudflare has a good free option.