- node.js
- express
- AWS
- Elastic Beanstalk
- Create an AWS account. Make a user and an administrative group with admin privilages. Add your new user to that group
- Connect that user and account to your computer via your terminal
- Make a basic express server. Be sure to edit your package.json with the correct start script
- Zip your files to prepare them for AWS. Removes your node_modules & package-lock.json, then use the following command
zip -rp server.zip *
- Install Electric Beanstalk:
brew install awsebcli
- Must already have python and aws for this command to work
- enter
eb init
- Follow the steps, selecting your region, project, and sellect No for Code Commit
- Enter
eb create my-environment-name
- Enter
eb deploy
Deploy a simple Node.js server to EC2, using Elastic Beanstalk. Choose a server you’ve built previously.
- Create a new environment, using Elastic Beanstalk from the AWS Control Panel (GUI)
- Manually deploy your application to this environment by uploading a .zip file
- Using the same server, create a new environment using Elastic Beanstalk from your terminal
- Manually deploy your application to this environment by using
eb deploy