Skip to content

Commit

Permalink
Update digitalocean bootstrap instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdi Yedes <mehdi.yedes@gmail.com>
  • Loading branch information
mehyedes committed Jun 1, 2020
1 parent 9f32534 commit 89b314c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

1) [Sign up to DigitalOcean](https://www.digitalocean.com/?refcode=2962aa9e56a1&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=CopyPaste)
2) [Download Terraform](https://www.terraform.io)
3) Clone this gist using the URL from the address bar
3) Download the [cloud-config.tpl](cloud-config.tpl) and [main.tf](main.tf) files.
Or directly from the terminal using `wget`:
```bash
$ wget --quiet https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/main.tf
$ wget --quiet https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/cloud-config.tpl
```
4) Run `terraform init`
5) Run `terraform apply -var="do_token=$(cat $HOME/digitalocean-access-token)"`
6) View the output for the login command and gateway URL i.e.
Expand Down
8 changes: 7 additions & 1 deletion docs/bootstrap/digitalocean-terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

1) [Sign up to DigitalOcean](https://www.digitalocean.com/?refcode=2962aa9e56a1&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=CopyPaste)
2) [Download Terraform](https://www.terraform.io)
3) Clone this gist using the URL from the address bar
3) Download the [cloud-config.tpl](cloud-config.tpl), [main.tf](main.tf) and [main.tfvars](main.tfvars) files.
Or directly from the terminal using `wget`:
```bash
$ wget --quiet https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/digitalocean-terraform/main.tf
$ wget --quiet https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/digitalocean-terraform/main.tfvars
$ wget --quiet https://raw.githubusercontent.com/openfaas/faasd/master/docs/bootstrap/digitalocean-terraform/cloud-config.tpl
```
4) Run `terraform init`
5) Configure terraform variables as needed by updating the `main.tfvars` file:

Expand Down

0 comments on commit 89b314c

Please sign in to comment.