pez-infra/terraform/providers.tf
Rasmus "Pez" Wejlgaard 043c783361
Some checks are pending
Deploy (on merge) / Discover hosts (push) Waiting to run
Deploy (on merge) / Deploy → (push) Blocked by required conditions
Terraform / Plan (push) Waiting to run
Terraform / Apply (push) Blocked by required conditions
Grafana Cloud Migration (#94)
* Grafana Cloud migration, adding dashboards, fleet, alloy and synthetics

* modulize stuff now that we have multiple substantial things in here

* provider updates and new secrets

* remove grafana and prometheus from ansible
2026-05-04 13:40:30 +01:00

40 lines
1.3 KiB
HCL

terraform {
required_version = ">= 1.6.0"
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = "~> 1.45"
}
grafana = {
source = "grafana/grafana"
version = "~> 4.35"
}
}
backend "s3" {
bucket = "pez-infra-tfstate"
key = "tfstate/terraform.tfstate"
endpoints = { s3 = "s3.eu-central-003.backblazeb2.com" }
region = "eu-central-003"
skip_credentials_validation = true
skip_region_validation = true
# Credentials read from AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY env vars
}
}
provider "hcloud" {
token = local.secrets["hetzner_token"]
}
provider "grafana" {
cloud_access_policy_token = local.secrets["grafana_cloud_access_policy"]
sm_url = "https://synthetic-monitoring-api-gb-south-1.grafana.net"
sm_access_token = local.secrets["grafana_synthetic_monitoring_access_token"]
fleet_management_url = "https://fleet-management-prod-023.grafana.net"
fleet_management_auth = local.secrets["grafana_fleet_management_auth"]
url = "https://pez.grafana.net"
auth = local.secrets["grafana_service_account_token"]
}