Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazing new feature #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

###Provisioning Servers
### Provisioning Servers
The main.js contains code to provision an ubuntu-14-04-x64 image from digitalocean's nyc server. In case of any issue occuring, and say if we arent able to provision from digitalocean, this code will call another module ec2_request.js's function runaws(). The runaws will basically create an instance and run it.

####INSTRUCTIONS
#### INSTRUCTIONS
* Install required dependencies by `npm install`.
* Add configuration token for Digital ocean at line 8 of main.js and uncomment it.
* Also update sshkeys on line 24 of main.js for digital ocean
Expand All @@ -11,20 +11,20 @@ The main.js contains code to provision an ubuntu-14-04-x64 image from digitaloce
* Please create the credentials json file in same directory for aws code api to work properly. Please follow http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-json-file.html


####NOTE:
#### NOTE:
* The IP address will be saved in 'output.txt' file.
* After creating a droplet using digital ocean, please comment from line 56 to line 101.
* To delete the droplet uncomment line 104 to 117 and edit droplet id on line 106.
* Please don't run create droplet more than once.

References: http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/ec2-example-creating-an-instance.html

###Screencast
### Screencast
Here's the link to screencast: http://screencast-o-matic.com/watch/cbVOVHQMpQ

* Please use `node main.js` to run the script this way after following the first 3 instructions given above.

###Configuration Management
### Configuration Management
All the dependencies are mentioned in packages.json file, therefore make sure to `npm install` in the directory to install necessary dependencies before running the js scripts.

The required dependencies are as follows:
Expand All @@ -33,3 +33,4 @@ The required dependencies are as follows:
* os
* fs

Beauty