Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to host a static website on Amazon EB (Elastic Beanstalk)?

I'm trying to deploy a static website (a bunch of HTML files, CSS files, JS files, images etc) to Amazon Elastic Beanstalk.

I've created the environment and now there's this button which allows me to deploy but it allows me to select only a single file.

How to I copy my file and folder structure so that it gets deployed properly?

like image 429
LittleLebowski Avatar asked Nov 04 '13 21:11

LittleLebowski


People also ask

How do I deploy a website on AWS Elastic Beanstalk?

Open the Elastic Beanstalk console , and in the Regions list, select your AWS Region. In the navigation pane, choose Environments, and then choose the name of your environment from the list. If you have many environments, use the search bar to filter the environment list. Choose Upload and deploy.

How do I add static files to Elastic Beanstalk?

Configure static files using the consoleIn the navigation pane, choose Configuration. In the Software configuration category, choose Edit. In the Static files section, enter a path for serving static files and the directory of the static files to serve into the empty row at the bottom of the list.

Does Elastic Beanstalk have static IP?

A single-instance environment in Elastic Beanstalk comes with a static IP address that's known as an Elastic IP address. You use a single-instance environment in Elastic Beanstalk to allow traffic from the IP address to access an external partner application, API, or other entity.

What is Elastic Beanstalk in AWS with example?

Elastic Beanstalk is a service for deploying and scaling web applications and services. Upload your code and Elastic Beanstalk automatically handles the deployment—from capacity provisioning, load balancing, and auto scaling to application health monitoring.


1 Answers

You can compress your files and folders as a zip file. After you upload it, EB will extract the zip file.

like image 118
study Avatar answered Oct 09 '22 06:10

study