Skip to content

Instantly share code, notes, and snippets.

@rpkim
Created January 22, 2019 12:25
Show Gist options
  • Save rpkim/10825074b11e66a5cd24e29631c3b4da to your computer and use it in GitHub Desktop.
Save rpkim/10825074b11e66a5cd24e29631c3b4da to your computer and use it in GitHub Desktop.
how to install api umbrella

API Umbrella

gcloud compute instances create apiumbrella-poc \
    --machine-type n1-standard-2 --zone asia-east1-a \
    --boot-disk-size=200G \
    --image-family ubuntu-1604-lts --image-project ubuntu-os-cloud \
    --maintenance-policy TERMINATE --restart-on-failure \
    --scopes=cloud-platform,datastore,storage-ro,service-management,service-control,trace,compute-rw,storage-full,https://www.googleapis.com/auth/cloudkms \
    --metadata startup-script='#!/bin/bash
	sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
echo "deb https://dl.bintray.com/nrel/api-umbrella-ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/api-umbrella.list
sudo apt-get update
sudo apt-get install -y api-umbrella
'

'

sudo /etc/init.d/api-umbrella start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment