Serverless Web Application CloudFront, S3, API Gateway, Lambda & DynamoDB | CORS concept API Gateway
ฝัง
- เผยแพร่เมื่อ 27 มี.ค. 2023
- Hello Dear All, my name is Amit. I am here to give some tips and tricks about cloud learning and some day to day problem solving methods. I'm an professional cloud engineer, working in this fields for 12+ years.
If you have any queries regarding AWS issues... feel free to reach out to me.
In this video, I have discussed Serverless Web Application hosting using AWS services.
Amazon Web Services (AWS) provides a number of services that can be used to host a serverless web application. Here are the steps to follow:
1. Choose a serverless framework: There are several serverless frameworks available for building web applications. Some popular ones are AWS SAM, Serverless Framework, and ClaudiaJS. These frameworks allow you to write serverless code using your favorite programming language and deploy it to AWS.
2. Use AWS Lambda for the backend: AWS Lambda is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources. You can use Lambda to build the backend of your web application.
3. Use AWS API Gateway for the frontend: AWS API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. You can use API Gateway to create RESTful APIs that can be used to access your Lambda functions.
4. Use AWS S3 for static content: AWS S3 is a scalable object storage service that can be used to store and serve static content such as images, videos, and HTML files.
5. Use AWS CloudFront for content delivery: AWS CloudFront is a global content delivery network (CDN) that can be used to deliver your web application content to users around the world with low latency and high transfer speeds.
6. Use AWS Route 53 for domain name management: AWS Route 53 is a highly available and scalable cloud domain name system (DNS) web service that can be used to route users to your web application.
By following these steps, you can easily build and host your serverless web application in AWS.
Part 1: • Serverless Web Applica...
Part 2: • Serverless Web Applica...
Playlist: • Serverless Learning Pl...
CodeBase: github.com/nspacer/serverless...
My email Id : beyondthecloud2022@gmail.com
facebook: / beyondthecloud2022
Linkedin: / beyondthecloud2023
#aws #amazonwebservices #software #softwareengineer #developers #clouds #cloudengineer #cloudcomputing #systemdesign #database #programming #fullstack #cloudsecurity #security #fullstacksoftwareengineering #itindustry #engineering #engineer #beyondthecloud #AWSSystemsmanager #AWSdocuments #AWSautomation #s3 #S3sucurity #yamlfile #jsontemplate #python #pythonprogramming #awsec2 #awsec2security #ec2security #instancemetadata #ec2 #awslambda #awsconfig #cloudwatch #dynamodb #awsiam #boto3 #cdk #infrastructure #insfrastructureascode #python #sqs #serverless #sam #awssam #docker #dockercontainer #java #cloudfront #contentdeliverynetwork #awscloudfront
@BeABetterDev @AWSTutorialsOnline @cluut @TinyTechnicalTutorials @BlockExplorerMedia @nickchapsas @itversity @TechwithLucy @Intellipaat @knowledgeindia @SimplilearnOfficial @TechnicalGuftgu @MachineLearningHub @edurekaIN @in28minutes @CodeWithHarry @QuickSupport @byluckysir - วิทยาศาสตร์และเทคโนโลยี
Please provide your valuable feedback in the comment section. Please like share and subscribe for more upcoming content
Thanks for creating this project, every step very well explained
I tried to follow along and after completing I am getting CORS error, although I have enabled CORS in API gateway methods
Thanks for the three parts.. very informative.
Glad it was helpful!
Thank you Amit for sharing valuable content with us.
So nice of you
well explained
Glad you liked it
Thank You soo much sir for the video. I request to you please do more videos on the serverless as well as in the two, three tier web application
Sure I will
Thank you
You're welcome
This is very helpful content. Thanks a lot! Can you kindly also make a video on API gateway also how can we achieve the same using the SAM?
Will do soon
sir i have build this project, thank you
Great!! Congratulations!!! You have done a great job!!
Great one! Very appreciated. Can also create one can upload the employee photo to S3 as well?
Thanks a lot for your comment. Yes of course you can do that but wondering why you will do it. Its confidential data and not recommended to upload in S3. Rather use an encrypted DB.
wonderful explanation, i learned a lot on these 3 series. Need to pick your brain though as the very last step wont work for me. After updating the API endpoint in the scripts, uploading it to s3, now back to the cloudfont served html page, on clicking "view all the employee profiles", I get a response of "error". I will highly appreciate your guidance.
also, I have another ask - can you create a 4th video adding cognito in front please authenticating the user(s) :)
Can you send me all the files and the setting in mail that is mentioned in description? I will look into it
@@beyondthecloud, hi Amit, I will send you the files and so as my config/screenshots. You are a Legend, Thank You!!!
Hi Amit, I recreated the Cloudfront distribution and it started to work. :)
Great!!
Can you please help? after execution, while saving profile -getting "error"...not storing data to dynamoDB
send me the code and files
Helpful containt, can you please share the git repo to get the html, script & lambda code, so that will able to do the hands-on by our own.
check description
Sir i got error msg sir because of lambda function in existing role permission denied sir . Can please tell about how to give the permission of existing role in lambda function.
You can go the lambda role or search the role in IAM and attach the permissions there
Hello... Sir... I am trying to host my own website... (Food ordering application) can u tell me how to write the lambda function for my own website...??
Hello, what do you want to achieve with this Lambda function?
I want to manage who are ordering from my website.. like there details... When they order any food through my website ..@@beyondthecloud
I am getting error while getting and posting data into Dynamodb.
My lambda is working well.
At final stage i am getting error.
Send me the error and all your files
i am also getting the error at the time of inserting or calling for the data on website. Did u get any resolution for it
Same here...did you solve the problem?
After trying everything, I'm getting an error, and I don't know what the problem is because I followed step by step, but it's not working.
What is the error?
sir I cannot view or insert the data on page I did every step you shown
Send me the code
What about security and authentication
You can do authentication with Lambda @Edge. I want to make a video for it in near future
sir phele ky banana hai ye to bta oo sub kuch phele swe bna ke rakha hai, pura confusion ker ke rakh diya
Hello, KIndly check the description of this video. The whole playlist is given and you should watch it one by one. Here is the link as well th-cam.com/play/PL1uOp2xDOxtpPS3s96s0OWIpKlgd7emEM.html
sir i had tried but finding so much errors after taking lambda for insert employee it showing so much error
What is the error that you are getting?
@@beyondthecloud how can I share you screenshot
Send me in mail
@@beyondthecloud okay
@@FaizAnsari-kq1hr bro me too getting same error can you please explain how you resolved it.
getting errors of CORS
Enable the cors in API, you will not receive it anymore
@beyondthecloud Nevermind..figured it out. Great series!!
Could you please confirm how you figured it out as I am also getting CORS error @@rashanjones6192