diff options
| author | Seth Flynn <[email protected]> | 2025-01-31 08:14:23 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-03 05:34:09 -0500 |
| commit | 082ef6167ea188de4a0439fe63baaca41b19b45b (patch) | |
| tree | c51217b3b47601ee95cacfeaeaef426fb7128a6d /terraform/providers.tf | |
| parent | d5ad065e31f4d84824463829eeabfb55dbe9ece4 (diff) | |
terraform: switch to plain hcl
• Removed input 'terranix'
• Removed input 'terranix/bats-assert'
• Removed input 'terranix/bats-support'
• Removed input 'terranix/flake-parts'
• Removed input 'terranix/nixpkgs'
• Removed input 'terranix/systems'
• Removed input 'terranix/terranix-examples'
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 +} |
