Deploying an Online Movie Watching Application on Cloud

A High-Availability, Low-Cost Static Website Architecture using AWS S3, CloudFront, and Route 53.

This project outlines the serverless deployment of a static front-end for an online movie application (`www.nlgtheatersonlinebook.in`). We leverage core AWS services to achieve exceptional performance, durability, and scalability without managing traditional web servers.

AWS S3, CloudFront, Route 53 Architecture Diagram Core Serverless Architecture for Static Web Hosting

1. Static Website Hosting with S3 💾

Amazon S3 (Simple Storage Service) acts as the **origin server** for our website. It stores all HTML, CSS, JavaScript, and image files securely and reliably.

  • Bucket Name: www.nlgtheatersonlinebook.in (Region: US East - N. Virginia).
  • Access: Block Public Access was **unticked** and **ACLs enabled** to grant Public Read access, necessary for static hosting.
  • Hosting Configuration: Enabled Static website Hosting, setting **Index document** to index.html and **Error document** to error.html.
  • S3 Endpoint: http://www.nlgtheatersonlinebook.in.s3-website-us-east-1.amazonaws.com

Confirmation of S3 Hosting Policy

S3 Bucket is configured to serve content, acting as a highly durable, cost-effective web host.

2. Global Caching with CloudFront (CDN) 🚀

To minimize latency for global users and improve security, we placed an **Amazon CloudFront** Content Delivery Network (CDN) in front of the S3 bucket.

  • Origin Domain: The S3 static website endpoint was used as the distribution's origin.
  • Security: An **Origin Access Control (OAC)** was created, and its policy was copied back to the S3 bucket policy, ensuring content is only delivered via CloudFront.
  • Root Object: Set to index.html.
  • Edge Location Benefit: Website content is cached at over 400 edge locations worldwide, drastically improving load speed.
  • Distribution Domain: The shortened, globally cached URL (e.g., d3d3ztansuuse.cloudfront.net).

3. Custom Domain Routing with Route 53 🌐

AWS Route 53 is used to map the user-friendly domain name to the CloudFront distribution, completing the professional setup.

  • Hosted Zone: Created for nlgtheatersonlinebook.com. (Note: A private hosted zone was chosen for VPC-internal traffic routing initially).
  • Record Type: An **A Record** (Alias) was created for www.
  • Traffic Target: The Alias target was set to the **CloudFront distribution** (or the S3 website endpoint in some Route 53 configurations).
  • Result: Traffic to www.nlgtheatersonlinebook.in is routed through the fastest edge location.
Final Testing: The deployment was validated by launching an **EC2 Windows Server instance** within the VPC and pasting the URL www.nlgtheatersonlinebook.in into its browser, successfully confirming internal DNS resolution and website accessibility.