1

How to use same domain name for front end and for lambda function endpoints for Serverless framework ?

I am using reactjs for frontend design and for frontend hosting I am using s3 and Aws Dynamodb for lambda functions.

1

1 Answer 1

1

We do the same in our systems, AWS solved it long time back.

It is the cloud service called CloudFront, which lets you connect multiple origins including external origins that are outside of AWS cloud.

Created a simple architecture diagram to help you view the same.

enter image description here

Hope it helps.

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks for reply !! Is there any other option other than cloudFront
There are 100 thousand ways to solve this problem. This is the best I could think of in AWS.
I have configured cloud front as you ( @Kannaiyan ) mention above and my website working fine but I am getting {"message":"Missing Authentication Token"} for apis
That is outside the scope of this question. Check it out on other forums. forums.aws.amazon.com/thread.jspa?threadID=192977

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.