diff options
Diffstat (limited to 'terraform/providers.tf')
| -rw-r--r-- | terraform/providers.tf | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/terraform/providers.tf b/terraform/providers.tf new file mode 100644 index 0000000..7a25835 --- /dev/null +++ b/terraform/providers.tf @@ -0,0 +1,43 @@ +variable "cloudflare_account_id" { + type = string +} + +variable "cloudflare_getchoo_com_zone_id" { + type = string +} + +provider "cloudflare" { + api_token = data.hcp_vault_secrets_app.borealis.secrets.cloudflare_api_token +} + +variable "hcp_client_id" { + type = string +} + +variable "hcp_client_secret" { + type = string +} + +variable "vault_app" { + type = string + default = "borealis" +} + +provider "hcp" { + client_id = var.hcp_client_id + client_secret = var.hcp_client_secret +} + +data "hcp_vault_secrets_app" "borealis" { + app_name = var.vault_app +} + +variable "tailscale_tailnet" { + type = string +} + +provider "tailscale" { + oauth_client_id = data.hcp_vault_secrets_app.borealis.secrets.tailscale_oauth_client_id + oauth_client_secret = data.hcp_vault_secrets_app.borealis.secrets.tailscale_oauth_client_secret + tailnet = var.tailscale_tailnet +} |
