Creating a website and deploying on AWS

Famous websites that use AWS

Netflix

Why AWS is the best place to host a website

  1. Easy to use

Create a Website on AWS

  1. Launching EC2 instance
  1. Go to the bucket that we created using bootstrap script.
  2. In the properties section, ENABLE static website hosting and choose to host a static website
  3. In the Permissions section, set the Block all public access to OFF.
  4. Make the index.html object public under Actions
  5. The object URL of the index.html can now be used to access the website.
  • Letting the clients/users access the object URL directly gives them the details of the region the bucket is in, the bucket name in which the object is stored.
  • This might open unexpected doors for attackers.
  • CloudFront solves this problem.
  • Plus, CloudFront offers Global Edge Network and ensures that the content is securely delivered as it integrates with WAF, SSL Encryption, DDoS, etc.
  1. For Origin Domain, choose the bucket that has index.html from the dropdown menu.
  2. Use OAI and create new OAI
  3. Ensure to update the bucket policy
  4. Configure other details such as logging, default root objects, etc., according to the requirements. Since this is a static website, we could stick to the defaults.
  5. Once done, wait for the distribution to come live.
  6. Now copy the domain name from CloudFront’s distribution dashboard and paste it into the browser.
  7. We can access the website directly if index.html is specified as the default root object. Else, use copiedDomainName/index.html to access the website.

Network Diagram

Costing and Efficiency details

Conclusion:

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Essentials tools for Microservices architecture

The world is not Utopian

Tune in to static (websites!)

How to install a specific version of Groovy on MacOS.

How Our Customer Success Team Uses a CRM

GitOps with github: DOA.

WhatsApp Status Saver/Downloader Using Flutter

Flutter Logo

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Raj Parmar

Raj Parmar

More from Medium

Flask Monitoring Dashboard

Google App Engine

Manga Tracker Project

Shopify Amazon Integration App — Inventory Sync Solution