Skip to content

Latest commit

 

History

History

remote-environment-setup

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. Make sure you have a recent nodeJS version installed, like 16.14.2 (otherwise you can use the n package to update)
# 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 set --secret hcloud:token <YOURTOKEN>
  1. Create the machines
pulumi up
  1. Do the tutorial.

  2. At the end, destroy everything

pulumi destroy