mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 08:26:47 +00:00
Bootstrap faasd on Digitalocean
- Sign up to DigitalOcean
- Download Terraform
- Clone this gist using the URL from the address bar
- Run
terraform init
- Run
terraform apply -var="do_token=$(cat $HOME/digitalocean-access-token)"
- View the output for the gateway URL
gateway_url = http://178.128.39.201:8080/
- View the output for sensitive data via
terraform output
command
terraform output login_cmd
login_cmd = faas-cli login -g http://178.128.39.201:8080/ -p rvIU49CEcFcHmqxj
terraform output password
password = rvIU49CEcFcHmqxj
Note that the user-data may take a couple of minutes to come up since it will be pulling in various components and preparing the machine.
A single host with 1GB of RAM will be deployed for you, to remove at a later date simply use terraform destroy
.
If required, you can remove the VM via terraform destroy -var="do_token=$(cat $HOME/digitalocean-access-token)"