Rahul
Rahul

Reputation: 99

same domain name for lambda function api endpoints(backend) and for frontend

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.

Upvotes: 1

Views: 766

Answers (1)

Kannaiyan
Kannaiyan

Reputation: 13035

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.

Upvotes: 1

Related Questions