Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions infra/digitalocean/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# DigitalOcean Terraform

This Terraform root is intended to run as its own Spacelift stack.

## Spacelift stack

- Project root: `infra/digitalocean`
- Terraform workflow tool: Terraform
- Managed state: enabled

Do not configure a backend in this root when using Spacelift-managed state.
Spacelift injects the backend configuration during runs.

## Required variables

Set these as stack environment variables or attach them through a Spacelift context:

- `TF_VAR_do_token`
- `TF_VAR_github_app_id`
- `TF_VAR_github_app_webhook_secret`
- `TF_VAR_github_app_private_key_base64`
- `TF_VAR_github_app_client_id`
- `TF_VAR_github_app_client_secret`
- `TF_VAR_influxdb_password`
- `TF_VAR_influxdb_token`

The `setup_credentials` script remains useful for local Terraform runs because it writes `terraform.tfvars` from 1Password.
9 changes: 0 additions & 9 deletions infra/digitalocean/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ terraform {
version = "~> 2.0"
}
}

cloud {
organization = "bpacia"

workspaces {
project = "bee-ci"
name = "bee-ci-workspace"
}
}
}

provider "digitalocean" {
Expand Down
Loading