question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about Origins

See original GitHub issue

Thanks a lot for such a complete and useful work! When looking at the example of reusing auth with my own Cloudfront distribution, I see the following:

        Origins:
          - DomainName: example.org
            Id: dummy-origin
            CustomOriginConfig:
              OriginProtocolPolicy: match-viewer
          - DomainName: example.com
            Id: protected-origin
            CustomOriginConfig:
              OriginProtocolPolicy: match-viewer

Are we supposed to replace example.org and example.com there with other values? Also, are we supposed to add our own S3 Bucket where we’ll be deploying our SPA?

Thanks again, Sammy

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
ottokrusecommented, Feb 20, 2020

Sure! Great.

Shall we close this issue for now?

1reaction
ottokrusecommented, Feb 19, 2020

Great to hear that!

“You do confirm that we can easily spin-off multiple SPA Distrubtions/Buckets without the lambda@edge functions being redeployed every time, right?”

In the sample solution the userPoolId and such is added into the Lambda@Edge functions (configuration.json). So if you need to use different user pools you need different Lamda@Edge functions.

You can of course change the code, then you can do whatever.

The Lambda@Edge functions are configuration-wise not aware of the bucket they protect, nor of the CloudFront distribution they are used in. So you can re-use the Lambda@Edge functions for multiple S3 buckets/CloudFront distributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Question of Origins, DVD - Christianbook.com
Does evolution explain the diversity of species on Earth ? Exploring the latest developments in chemistry, cosmology, and biology, this visually rich, ...
Read more >
A Question of Origins - CSN International
A Question of Origins takes an inspiring journey through science and Scripture in search of mankind's genesis. The theory of evolution has ...
Read more >
A Question of Origins (Video 1998) - IMDb
Chemists, biologists, physicists, astronomers and geologists discuss the weaknesses of the theories of evolution and the Big Bang, as well as the strengths ......
Read more >
Where Did I Come from? A Question of Origins
Once science is introduced, it raises these questions in connection with man's origins: “What is the relationship between science and the Bible?
Read more >
Exploring Different Ways of Asking About Evolution
The Evolution of Pew Research Center's Survey Questions About the Origins and Development of Life on Earth. (Planet Observer/Universal Images ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found