Switch to terraform

This commit is contained in:
Prox
2026-02-15 18:37:15 +02:00
commit a7062b43ab
70 changed files with 6063 additions and 0 deletions

52
terraform/policies.tf Normal file
View File

@@ -0,0 +1,52 @@
# Access policies for Achilles network
resource "netbird_policy" "pilot_to_gs" {
name = "pilot-to-ground-station"
description = "Allow pilots to connect to ground stations"
enabled = true
rule {
name = "pilot-gs-access"
enabled = true
sources = [netbird_group.pilots.id]
destinations = [netbird_group.ground_stations.id]
bidirectional = true
protocol = "all"
action = "accept"
}
}
resource "netbird_policy" "operator_full_access" {
name = "operator-full-access"
description = "Operators can access all network resources"
enabled = true
rule {
name = "operator-all"
enabled = true
sources = [netbird_group.operators.id]
destinations = [
netbird_group.ground_stations.id,
netbird_group.pilots.id,
netbird_group.fusion_servers.id
]
bidirectional = true
protocol = "all"
action = "accept"
}
}
resource "netbird_policy" "fusion_to_gs" {
name = "fusion-to-ground-station"
description = "Fusion servers coordinate with ground stations"
enabled = true
rule {
name = "fusion-gs"
enabled = true
sources = [netbird_group.fusion_servers.id]
destinations = [netbird_group.ground_stations.id]
bidirectional = true
protocol = "all"
action = "accept"
}
}