Have Anyone Told You Angular App In S3 Bucket.

S3 Buckets are distinct flavors of S3 storage kinds and activities that can determine the price of cloud storage for users. S3 storage classes are like Amazon S3 Standard, Infrequent Access, and Glacier is available for Archive. S3 Buckets are different flavors of S3 storage types and operations that can determine the cost of cloud storage for the user. S3 storage classes are like Amazon S3 Standard, Infrequent Access, and for Archive there is Glacier. As from knowledge S3 concept is very old and it contains very sophisticated terminology. I’m explaining about S3 in very short. You can visit the official AWS website and there pricing is also described. S3 bucket is very cheap. I’m explaining about S3 in a very short.

You can visit the official website of AWS and there.

AWS official S3 Documents are available at

Standard

  • Low latency and high throughput performance.
  • Designed for durability of 99.999999999% of objects across multiple Availability Zones
  • Designed for 99.99% availability over a given year

INFREQUENT ACCESS

  • Same low latency and high throughput performance of S3 Standard.
  • Designed for durability of 99.999999999% of objects across multiple Availability Zones

Glacier

  • Designed for durability of 99.999999999% of objects across multiple Availability Zones

For the angular app, I am using default angular,

Here is the command to create a new sample angular app

Go inside that folder

Download the node modules

And Run the server

Check your browser search for localhost:4200

If it is running then go to CMD and run a command for production mood.

Then it will create a dist folder.

Create a Bucket which is unique and upload everything which is inside the dist folder.

Next step is to go to bucket properties. And click on static website hosting, Enable the static web hosting, mention the index.html and error.html and save it.

Important step —– if your website works as static website hosting you need to enable some set of permissions such as bucket policy.

No alt text provided for this image

The DNS is the AWS Bucket Endpoint. With this domain name, you can Route your traffic from Route 53. And also it can configure to Cloudfront.

Great! I hope we learned some interesting stuff

Sharing is caring!

Leave a Comment

Your email address will not be published. Required fields are marked *