Serverless Web Application frontend using CloudFront and S3 in AWS | Dynamic website hosting Part 1
ฝัง
- เผยแพร่เมื่อ 21 มี.ค. 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 AWS S3 website hosting with CloudFront.
“Serverless” is the concept of running applications without managing dedicated Linux servers yourself, usually with a Platform-as-a-Service solution like AWS’s App Runner or Lambda Functions. While you may run a normal application like NGINX on an EC2 virtual machine, you can usually serve the same kind of app without running servers.
The benefit to this solution is zero reliance on your own servers-S3 will always respond to requests, so you can have as many people as you want accessing your site. In front of S3, you can use CloudFront, AWS’s Content Delivery Network (CDN) solution. CloudFront runs hundreds of edge caches, which all cache requests to S3 for you, increasing latency & throughput, and lowering cost.
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.
very nice feature this cloudfront root object. Waiting for the next part
One of the best video out so far with clear demo of concepts.Thanks!
Glad it was helpful!
Awesome content!! Extremely well explained I really appreciated, I have been struggling with some of these concepts but ypu made it very easy to follow and understand
Glad it was helpful!
Informative video… thank you…
Sir, you are my savior thank you for making these videos. Please keep uploading more such content.
🤟
So nice of you
It's a very useful video Sir , please upload this kind of real world use case projects , it helps a lot for all of us.
One suggestion from my end , if you can include WAF before CDN , it adds an extra layer of security to the application .
Thank you sir for creating content like this . Hopefully we will see more videos in the future like this ❤.
Thanks a lot for your comment.. Yes you are absolutely correct. We can definitely use waf before cdn... best of luck
Great content, keep up the hard work!
Appreciate it!
New to cloud and hope your tutorial will make me expert. Nice content
Sure you will succeed. Let me know any specific topic you want to learn.
Great Video. I Learnt a lot. Thanks. As a suggestion adding an alternate user-friendly domain name and an SSL certificate will further spice things up.
Thanks for the tip!
I love the content💯
Thanks a lot
very good explanation sir
Glad you liked it!!
now i need that files
What will happen if I replace the S3 bucket with Apprunner ?
App Runner is a wholesome service offered by AWS. you have to configure lots of things to replace the backend you are referring to. In case you want to do it, you may then reach out to app runner endpoint from cloudfront directly
Hello I am getting an error of No 'Access-Control-Allow-Origin' header is present on the requested resource. Do you have a solution ?
Well, I have explained in the video to enable CORS for API Gateway. I think you are facing issue because didn't enable it. Please enable it and how to do that you will find it in the video itself
@@beyondthecloud I AM ALSO FACING ISSUE OF favicon.ico file 403 Error.
Hlo could you please explain lamda function
Which Lambda function?
Please make in-depth video for each service of aws
will definitely try
Hi, Thanks for creating and explaining the step by step approach, I tried to follow along but application is through error while I tried to save or return the result from Dynamo DB table, Could you please guide?
what is the error? Did you give lambda correct permission?
@@beyondthecloudyes, I have provided full dynamodb access to lambda function and I am able to test it from API gateway as well
Actual error is around CORS when I try to access Cloudfront distribution
@@beyondthecloud I able to figure out the error , I changed API from regional to Edge Optimized and CORS error disappeared, Kudos to you on uploading such great and valuable content
great video. Do you have a github link for the profle.html and script.js code?
In the description
please drop the s3 policy used here.. its showing error to me
{
"Version": "2012-10-17",
"Statement": {
"Sid": "AllowCloudFrontServicePrincipalReadOnly",
"Effect": "Allow",
"Principal": {
"Service": "cloudfront.amazonaws.com"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::/*",
"Condition": {
"StringEquals": {
"AWS:SourceArn": "arn:aws:cloudfront:::distribution/"
}
}
}
}
how will get this profile.html file and script.js file
Please check the part 2 of the video and its description box.
th-cam.com/video/oPYMsf78YAc/w-d-xo.html
where can I get the source code
check the description
greate video.can u share the files which are used in the video
Check description
github.com/nspacer/serverless-website-hosting
please help me
Sir can i get the code ?
Check the description box
sir what is your LinkedIn id, I will mention you in my post. for now, i mentioned your GitHub code link.
You can find my LinkedIn id in the description of every video.
Here is the link as well.
www.linkedin.com/in/amit-nag-852b6337