flake/infra/secrets.tf

23 lines
404 B
Terraform
Raw Permalink Normal View History

2024-09-21 16:21:30 +00: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-27 16:03:31 +00:00
provider "aws" {
region = "ap-northeast-1"
access_key = local.secrets.aws.access_key
secret_key = local.secrets.aws.secret_key
}
2024-11-07 04:19:13 +00:00
provider "cloudflare" {
api_token = local.secrets.cloudflare.api_token
}