terraform-modules/example/terraform.tfvars

186 lines
No EOL
4.7 KiB
HCL

region = "eu01"
service_account_key_path = "/Users/schlenz/sa-key-dd5fa2c9-1651-4da7-8404-9ac4fe9bc3d5.json"
projects = {
project_1 = {
name = "project-1"
organization_id = "03a34540-3c1a-4794-b2c6-7111ecf824ef"
owner_email = "maximilian.schlenz@stackit.cloud"
postgres_instances = {
dev = {
name = "pg-test-instance"
version = 17
flavor = {
cpu = 2,
ram = 4
}
storage = {
class = "premium-perf6-stackit",
size = 20
}
replicas = 1
acl = ["0.0.0.0/0"]
backup_schedule = "00 00 * * *"
users = [
{ username = "adm-usr",
roles = ["login", "createdb"]
},
{ username = "testusr",
roles = ["login"]
}
]
databases = [
{
name = "test-db",
owner = "admin"
}
]
}
}
networks = {
tiny = {
name = "tiny-net"
ipv4_prefix_length = 28
labels = {
purpose = "test"
}
security_groups = {
ssh_ingress_group = {
name = "ssh-ingress-group"
description = "ALLOW SSH ingress"
rules = [
{ description = "SSH RULE 1"
direction = "ingress"
ether_type = "IPv4"
ip_range = "0.0.0.0/0"
protocol = {
name = "tcp"
}
port_range = {
min = 22
max = 23
}
},
]
},
web_traffic_group = {
name = "web-traffic-group"
description = "ALLOW WEB TRAFFIC ingress"
rules = [
{ description = "ALLOW ALL 80"
direction = "ingress"
ether_type = "IPv4"
ip_range = "0.0.0.0/0"
protocol = {
name = "tcp"
}
port_range = {
min = 80
max = 80
}
},
{ description = "ALLOW ALL 443"
direction = "ingress"
ether_type = "IPv4"
ip_range = "0.0.0.0/0"
protocol = {
name = "tcp"
}
port_range = {
min = 443
max = 443
}
},
]
},
}
network_static = {
}
custom_static = {
name = "static-net"
routed = true
ipv4_prefix = "10.99.0.0/24"
ipv4_gateway = "10.99.0.1"
nic_ipv4 = "10.99.0.10"
nic_name = "static-nic"
nic_security_group_ids = [""]
}
}
}
# ske_clusters = {
# dev = {
# name = "dev"
# kubernetes_version_min = "1.31"
# node_pools = [
# { name = "default"
# machine_type = "c2.1"
# availability_zones = ["eu01-1", "eu01-2"]
# volume_size = 40
# minimum = 1
# maximum = 3
# }
# ]
# }
# prod = {
# name = "prod"
# kubernetes_version_min = "1.31"
# node_pools = [
# { name = "general"
# machine_type = "c2.2"
# availability_zones = ["eu03-1", "eu03-2"]
# volume_size = 80
# minimum = 2
# maximum = 4
# }
# ]
# }
# }
observability_instances = {
starter = {
name = "Observability-1"
plan_name = "Observability-Starter-EU01"
}
prod = {
name = "Observability-2"
plan_name = "Observability-Large-EU01"
}
}
},
# project_2 = {
# name = "project-2"
# organization_id = "03a34540-3c1a-4794-b2c6-7111ecf824ef"
# owner_email = "maximilian.schlenz@stackit.cloud"
# networks = {
# tiny = {
# name = "tiny-net"
# ipv4_prefix_length = 28
# labels = {
# purpose = "test"
# }
# }
# custom_static = {
# name = "static-net"
# routed = false
# ipv4_prefix = "10.99.0.0/24"
# ipv4_gateway = "10.99.0.1"
# nic_ipv4 = "10.99.0.10"
# nic_name = "static-nic"
# nic_security_group_ids = [""]
# }
# }
# }
}