infra/terraform/terraform_providers.tf

43 lines
871 B
Terraform
Raw Normal View History

2020-01-12 19:32:14 +01:00
terraform {
2021-08-18 13:05:59 +02:00
required_providers {
cloudflare = {
2022-11-16 08:31:16 +10:00
source = "cloudflare/cloudflare"
2021-08-18 13:05:59 +02:00
}
2023-01-25 13:31:54 +01:00
gandi = {
source = "go-gandi/gandi"
}
2022-05-12 00:07:07 +02:00
hydra = {
2022-11-16 08:31:16 +10:00
source = "DeterminateSystems/hydra"
2022-05-12 00:07:07 +02:00
}
sops = {
source = "carlpett/sops"
}
2023-01-21 11:28:01 +01:00
tfe = {
source = "hashicorp/tfe"
}
2021-08-18 13:05:59 +02:00
}
2020-01-12 19:32:14 +01:00
}
data "sops_file" "nix-community" {
source_file = "secrets.yaml"
}
provider "cloudflare" {
api_token = data.sops_file.nix-community.data["CLOUDFLARE_API_TOKEN"]
}
2022-05-12 00:07:07 +02:00
2023-01-25 13:31:54 +01:00
provider "gandi" {
key = data.sops_file.nix-community.data["GANDI_KEY"]
sharing_id = data.sops_file.nix-community.data["GANDI_SHARING_ID"]
}
2022-05-12 00:07:07 +02:00
provider "hydra" {
2022-11-16 08:31:16 +10:00
host = "https://hydra.nix-community.org"
password = data.sops_file.nix-community.data["HYDRA_PASSWORD"]
2022-05-12 00:07:07 +02:00
username = "admin"
}
provider "tfe" {
token = data.sops_file.nix-community.data["TFE_TOKEN"]
}