Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Angular 2 application into AWS Elastic Beanstalk

I am now developing a front-end application using angular 2. This id for communicating with another micro services deploying in cloud. In this Angular 2 application I am not using database interaction.

I need to deploy this Angular 2 application in elastic beanstalk (AWS PaaS). What are the important procedure that I need to follow for deploying into cloud? I am new to angular framework and cloud platforms. How can I deploy my Angular 2 application into AWS Elastic Beanstalk?

like image 760
Mr.DevEng Avatar asked Dec 12 '25 07:12

Mr.DevEng


1 Answers

Do you need exactly to elastic beanstalk or you need just deploy to AWS using any suggested solutions?

If second - simplest way is to deploy Angular2 to S3 bucket, configured to serve static files:

  • Go to S3
  • Create new bucket
  • Open bucket
  • Go to "Properties" tab enter image description here
  • Select "Static website hosting" enter image description here
  • Check "Use this bucket to host a website" and provide "index.html" for both index and error pages enter image description here
  • Build solutions using "ng build"
  • Copy build results from "build" folder into this bucket
  • Navigate to links, displayed in "Static website hosting" section
like image 187
VadimB Avatar answered Dec 15 '25 04:12

VadimB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!