1.2.86 • Published 8 years ago

cloudspace v1.2.86

Weekly downloads
7
License
BSD-3-Clause
Repository
github
Last release
8 years ago

CloudSpace

Free yourself from your Desktop, and reserve some cloud space just for yourself. Don't be grounded by your hardware.

npm version Build Status

Usage

  • npm install -g cloudspace

Cloudspace Commands

  • cloudspace --help : Lists the available commands
  • cloudspace create : Creates a new instance in the current region.
  • cloudspace list : Lists all cloudspace instances in all regions.
  • cloudspace ssh : Get the first IpAddress of running instances, for piping to ssh command. This is the default command.
  • cloudspace terminate : Terminates all cloudspace instances in all regions.
  • cloudspace on : Turns on an existing cloudspace instance, if none exists it will create one.
  • cloudspace off : Turns off the existing cloudspace instance.

Example flow:

  • cloudspace create : Create the VM
  • cloudspace ssh : Load the credentials once the machine is running
  • ssh cloudspace: Launch ssh using the cloudspace alias

Prerequisites

  • AWS SDK Crendetials must be configured.
  • Must have a user that contains the necessary permissions
  • Create VPC (if necessary) Set Tag:Name as Cloudspace Set Edit DNS Hostnames to Yes
  • Create VPC Subnet Name the VPC Subnet Cloudspace Set Enable auto-assign Public IP to true Use ACL Restrictions for VPC to manage security: Inbound Rules

    			| Rule #           |        Type     |   Protocol    |   Port Range  | Source     | Allow / Deny |
    			| :--------------: |----------------:|--------------:|--------------:|-----------:|-------------:|
    			| 100              | ALL Traffic     |   ALL         |   ALL         | Private IP | ALLOW        |
    			| 110              | Custom TCP Rule |   TCP (6)     | 1024-65535    | 0.0.0.0/0  | ALLOW        |
    
    		* Outbound Rules
    
    			| Rule #           |        Type   |   Protocol    |   Port Range  | Source    | Allow / Deny |
    			| :--------------: |--------------:|--------------:|--------------:|----------:|-------------:|
    			| 100              | ALL Traffic   |   ALL         |   ALL         | 0.0.0.0/0 | ALLOW        |
    
    	* Update the Security Group automatically created (called `default`) for the VPC
    		* Create the tag `Name`:`Cloudspace` for the VPC, using this tag `Cloudspace cli` will automatically use it.
    		* Inbound Rules
    
    			|        Type  |   Protocol    |   Port Range  | Source     |
    			|-------------:|--------------:|--------------:|-----------:|
    			| ALL Traffic  |   ALL         |   ALL         | Private IP |
    
    		* Outbound Rules
    
    			|        Type  |   Protocol    |   Port Range  | Source    |
    			|-------------:|--------------:|--------------:|----------:|
    			| ALL Traffic  |   ALL         |   ALL         | 0.0.0.0/0 |
  • Create Internet Gateway named Cloudspace and attach to the VPC * Update the Route Table for the Subnet for the destination 0.0.0.0/0 to target the new Internet Gateway.

Use Cloudspace as a library

Cloudspace cli is a wrapper for the cloudspace library, which can be invoked directly.

const pathToAwsUserData = path.join(__dirname, 'userdata.sh');
const ami = {
	'us-east-1': 'ami-ddf13fb0',
	'us-west-1': 'ami-b20542d2'
};

const cloudspace = new Cloudspace(pathToAwsUserData, ami);
cloudspace.Create();
1.2.86

8 years ago

1.2.84

8 years ago

1.2.82

8 years ago

1.2.80

8 years ago

1.2.78

8 years ago

1.2.76

8 years ago

1.2.74

8 years ago

1.2.72

8 years ago

1.2.69

8 years ago

1.2.68

8 years ago

1.2.66

8 years ago

1.2.63

8 years ago

1.2.61

8 years ago

1.2.59

8 years ago

1.2.58

8 years ago

1.2.56

8 years ago

1.1.54

8 years ago

1.1.52

8 years ago

1.1.50

8 years ago

1.1.49

8 years ago

1.1.47

8 years ago

1.1.45

8 years ago

1.1.44

8 years ago

1.1.42

8 years ago

1.1.40

8 years ago

1.1.38

8 years ago

1.0.36

8 years ago

1.0.34

8 years ago

1.0.31

8 years ago

1.0.29

8 years ago

1.0.26

8 years ago

1.0.24

8 years ago

1.0.22

8 years ago

1.0.19

8 years ago

1.0.16

8 years ago

1.0.14

8 years ago

1.0.9

8 years ago

1.0.6

8 years ago

1.0.4

8 years ago