flake/infra/secrets.tf

29 lines
568 B
Terraform
Raw Normal View History

2024-09-22 00:21:30 +08:00
data "sops_file" "secrets" {
source_file = "secrets.yaml"
}
locals {
secrets = yamldecode(data.sops_file.secrets.raw)
}
provider "vultr" {
api_key = local.secrets.vultr.api_key
}
2024-09-28 00:03:31 +08:00
provider "aws" {
region = "ap-northeast-1"
access_key = local.secrets.aws.access_key
secret_key = local.secrets.aws.secret_key
}
2024-11-07 12:19:13 +08:00
provider "cloudflare" {
api_token = local.secrets.cloudflare.api_token
}
2025-01-18 17:56:03 +08:00
provider "keycloak" {
client_id = "terraform"
client_secret = local.secrets.keycloak.token
realm = "ny4"
url = "https://id.ny4.dev"
}