Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Remote environment for working on this tutorial

this pulumi script sets up a number of hcloud hosts using hetzner how to use:

  1. Edit index.ts to add the machines you need for this tutorial, every machine with a username and a password. off course, don't commit your edits
  2. Set up pulumi:
# install pulumi
curl -sSL https://get.pulumi.com | sh
# create a local stack (alternative: create pulumi account)
pulumi login --local
# install SDK
npm install

If you get weird errors in the above, check that your nodejs installation is recent (hint: the one that comes with ubuntu IS NOT RECENT. install the official one).

  1. Go to cloud.hetzner.com, create a project and for this project get an API token.
  2. Set the token
# change the passphrase if you didn't have it empty
PULUMI_CONFIG_PASSPHRASE="" pulumi config set --secret hcloud:token <YOURTOKEN>
  1. Create the machines
PULUMI_CONFIG_PASSPHRASE="" pulumi up
  1. Do the tutorial.

  2. At the end, destroy everything

PULUMI_CONFIG_PASSPHRASE="" pulumi destroy