Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anuj-thakur-513/deploy-nodejs-cli
a CLI tool to deploy node.js projects to AWS EC2 (mentioned EC2 instance or create a new one)
https://github.com/anuj-thakur-513/deploy-nodejs-cli
Last synced: about 2 months ago
JSON representation
a CLI tool to deploy node.js projects to AWS EC2 (mentioned EC2 instance or create a new one)
- Host: GitHub
- URL: https://github.com/anuj-thakur-513/deploy-nodejs-cli
- Owner: anuj-thakur-513
- Created: 2024-11-01T14:19:53.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T14:01:39.000Z (2 months ago)
- Last Synced: 2024-11-04T14:39:12.326Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-deploy-nodejs
A CLI tool which allows you to directly deploy your personal projects to an EC2 instance. Either create a new instance or pass the instance-id to deploy on an already existing instance.
Steps to use:
- Create an IAM User with following permissions (generate an access key for this user):
- AmazonEC2FullAccess
- AmazonSSMFullAccess
- AmazonSSMManagedInstanceCore
- AmazonIAMFullAccess- Create an IAM Profile with following permissions:
- AmazonEC2FullAccess
- AmazonSSMFullAccess
- AmazonSSMManagedInstanceCore
- AmazonEC2RoleforSSM- If you want to host on an already existing instance, attach the IAM profile to that instance otherwise nothing required
- Create a Security group which exposes the desired ports in the inbound rules or just expose the ports that you want to expose
- Replace ```.env.sample``` with ```.env``` and add all the values
- ```npm install```
- ```npm i -g .```
- ```aws-deploy-nodejs --help```## Command Use
![](/github_assets/aws-deploy-nodejs%20help.jpg)![](/github_assets/aws-deploy-nodejs%20success.jpg)
## Demo Video
https://github.com/user-attachments/assets/e1cabe48-52f3-4bf6-8c10-0e3b76012030## Contributions
- Fork the repo and clone it locally
- Setup the ```.env``` file and install the command globally
- Create a new branch for the feature you're going to add
- Push your changes and raise a PR