Udagram: Your Own Instagram on AWS FAQ — Udacity

Alvaro Andres Pinzon Cortes
2 min readJan 3, 2020

--

Cloud developer

How to install the EB CLI

For mac https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-osx.html

For linux https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-linux.html

For Windows https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-windows.html

How to validate the URL

This is a good example https://stackoverflow.com/questions/30970068/js-regex-url-validation/30970319

How to debug?

  1. To the elastic beanstalk page and go to logs

2. Download the logs and try to look at the error messages:

How to deploy the app?

  1. Configure your project directory and the EB CLI by running eb init.
  2. Add a start script in the package.json

3. Run npm run build to transpile and package our code into a zip, we need to configure Elastic Beanstalk to use this build archive. This is accomplished with the following addition to the .easticbeanstalk/config.yml configuration file:

deploy:
artifact: ./www/Archive.zip

Add the enviroment name

4. Run eb create

eb create

How to test the app without EB CLI?

  1. Open the terminal and change directory to the root folder of the project
  2. Build:
npm run build

3. Open the elastic beanstalk page and create the application:

4. Select the Archive.zip:

Resources & Links

Deploying Node.js applications to Elastic Beanstalk

Configure the EB CLI

Deploying an artifact instead of the project folder

--

--

No responses yet