36 lines
541 B
Terraform
36 lines
541 B
Terraform
|
variable "hcloud_token" {
|
||
|
type = string
|
||
|
sensitive = true
|
||
|
}
|
||
|
|
||
|
variable "environment" {
|
||
|
type = string
|
||
|
}
|
||
|
|
||
|
variable "project_name" {
|
||
|
type = string
|
||
|
default = "project"
|
||
|
}
|
||
|
|
||
|
variable "location" {
|
||
|
type = string
|
||
|
default = "nbg1"
|
||
|
}
|
||
|
|
||
|
locals {
|
||
|
environment_long = lookup(
|
||
|
{
|
||
|
dev = "Development",
|
||
|
tst = "Test",
|
||
|
prd = "Production"
|
||
|
},
|
||
|
var.environment,
|
||
|
"Development"
|
||
|
)
|
||
|
|
||
|
common_labels = {
|
||
|
"Project" = var.project_name
|
||
|
"Owner" = "Oscar"
|
||
|
"Environment" = local.environment_long
|
||
|
}
|
||
|
}
|