Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

BrunoBernardino/node-google-cloud-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Helper

The idea of this CLI tool is to basically start, stop and delete Google Compute Engine instances, while automatically mapping the ephemeral IPs in Google Cloud DNS.

Note the instances have to exist, and the domains top map (optional) should be in Google Cloud DNS already.

I'm using this for remote development, and it reduces costs, while enabling me to have a very powerful remote development machine.

Installation

$ npm install -g gcloud-helper

Usage

$ gcloud-helper start europe-west1-b dev-1 domain1.com,domain2.com

Setup

Variables

Some variables have to be set in the env (/etc/environment, ~/.bashrc or even export):

  • GCLOUD_PROJECT_KEY_JSON, e.g. '/home/you/gcloud-key.json'
  • GCLOUD_PROJECT_ID, e.g. 'grape-spaceship-123'

TODO:

  • Add linter
  • Add unit tests for commands, arguments, showing help, spying on what's called from gcloud, etc.
  • Support subdomains on instance start, for Cloud DNS update? (will require actual requests)

About

A CLI Node.js helper for Google Cloud

Resources

Stars

Watchers

Forks

Packages

No packages published