A big thank you, this is the only video that has helped me to successfully get it right.... May I ask for another video workflow to include adding a SSL for HTTPS (ACM) ?
Hi Michael, glad that it helped. For https you need to bring in CloudFront. Not sure if I have video here on youtube but it’s definitely there in my Udemy course on AWS VPC and Networking
It works pretty much the same in real life. You can buy domain name from anywhere and can manage DNS in AWS Route53. If you want you can also transfer the domain names to AWS as well.
Just because we want to redirect the main domain to www. Yes you may just have single bucket and point the R53 domain to that bucket as well. But in that case redirection will not happen. Its good practice to have www subdomain for web contents.
Actually we are talking here about DNS resolution and not the actual request routing. Typically DNS will be cached at multiple levels e.g browser, system, local DNS server and hence this would just happen after every TTL expiration for DNS records. Moreover DNS queries are extremely fast and doesn’t need more than few milliseconds to get a response. So you won’t be really slowed down due to redirection.
@@AWSwithChetan i tried implementing this method but i am having some errors .i dont know what is.i can give you necessary access please can you help me?
It will be difficult to help in person. Only change since this video was made is that there are s3 block public settings got added. You need to disable these settings at S3 level and bucket level in order to make bucket public. Hope that helps.
Nice tutorial bro... But mine is not redirecting to www. I followed each step but still I can see my site when I put www.domain.com but do not when I just put domain.com ... Any suggestions?
Hi, s3 can be used to host only static pages like html or java script. PHP needs server side processing and hence you can’t host on S3. You can use EC2 instance to host your web.