Deploys Ubuntu, NodeJS, ExpressJS and PostgreSQL (UNEPO) Stack on AWS EC2 with AWS SDK for JavaScript/NodeJS V2.
The script deploys/creates or deletes the following specific resources and software:
-
AWS EC2 instance(s) with Ubuntu 22.04 LTS OS
-
Bash launch or start-up script (user data) for the installation of software, on the instance(s), including:
- Additional Ubuntu OS Packages
- NodeJS
- ExpressJS Web Server Framework
- Other Node.js Packages and
- PostgreSQL
- Additional Ubuntu OS Packages
-
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install aws-sdk
sudo npm install uuid -
NodeJS script - index.js
User data bash script (launch script) - user-data.sh
JSON files - credentials.json and inputConfig.json -
sudo node index.js
Copyright © 2015 - present. MongoExpUser
Licensed under the MIT license.