Giter Club home page Giter Club logo

Comments (5)

evanderkoogh avatar evanderkoogh commented on August 22, 2024

Hey @thejuan, you have stumbled on an interesting conundrum. Because the Lambda@Edge will create the responses to all requests, there are no request that will ever go to the origin. So we don't need it, but CloudFront needs to have an origin set.

So we have settled for the using a static domain that basically says "If you can see this page, something is wrong in your FAB config".. We would have used a fab.dev domain, but then we get into trouble if it is called from another Cloudflare Workers sometimes.

But we can probably add a bit of explanation to the CF template why there is a Linc specific thing in there.

Did you get your FAB running on Lambda@Edge?

from fab.

thejuan avatar thejuan commented on August 22, 2024

Ahh! I should have just tried it :)
It is indeed working.

I had to remove the lambda association from the CF template as was getting a permissions error.
The fab deploy associated it fine for me.

Then had to monkey patch the aws cred stuff from #180

from fab.

evanderkoogh avatar evanderkoogh commented on August 22, 2024

Which is a good point actually. We can just remove the entire CF template and just call the API endpoints directly in the deployer.

from fab.

thejuan avatar thejuan commented on August 22, 2024

It is nice to have some finer grain control over the CF, like cnames. But if that was still exposed somehow in the advanced scenario, it would make setup much quicker

from fab.

evanderkoogh avatar evanderkoogh commented on August 22, 2024

Yeah, we can absolutely surface that in some way or another.

from fab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.