2023-02-17 17:22:50 +00:00
|
|
|
terraform {
|
2024-02-17 06:41:51 +00:00
|
|
|
backend "kubernetes" {
|
|
|
|
secret_suffix = "state"
|
|
|
|
config_path = "~/.kube/config"
|
|
|
|
labels = {
|
|
|
|
"app.kubernetes.io/managed-by" : "terraform"
|
2023-02-17 17:22:50 +00:00
|
|
|
}
|
2024-02-17 06:41:51 +00:00
|
|
|
}
|
2023-02-17 17:22:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
provider "kubernetes" {
|
2024-02-17 06:41:51 +00:00
|
|
|
config_path = "~/.kube/config"
|
2023-02-17 17:22:50 +00:00
|
|
|
}
|
|
|
|
|
2024-02-17 06:41:51 +00:00
|
|
|
module "aws_parameters_external_secrets" {
|
|
|
|
source = "./modules/aws_parameters_external_secrets"
|
2023-02-17 17:22:50 +00:00
|
|
|
}
|
2023-02-17 19:43:19 +00:00
|
|
|
|
2024-02-17 06:41:51 +00:00
|
|
|
|
|
|
|
module "cloudflare_records" {
|
|
|
|
source = "./modules/cloudflare_site"
|
|
|
|
|
|
|
|
dns_zone = "badjware.dev"
|
|
|
|
dns_records = [
|
|
|
|
{
|
|
|
|
name = "@"
|
|
|
|
type = "A"
|
|
|
|
value = "104.152.168.30"
|
|
|
|
|
|
|
|
proxied = false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "@"
|
|
|
|
type = "MX"
|
|
|
|
value = "mail.badjware.dev"
|
|
|
|
priority = 0
|
|
|
|
|
|
|
|
proxied = false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "mail"
|
|
|
|
type = "CNAME"
|
|
|
|
value = "badjware.dev"
|
|
|
|
|
|
|
|
proxied = false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "cloud"
|
|
|
|
type = "CNAME"
|
|
|
|
value = "home.badjware.dev"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "code"
|
|
|
|
type = "CNAME"
|
|
|
|
value = "home.badjware.dev"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "grafana"
|
|
|
|
type = "A"
|
|
|
|
type = "CNAME"
|
|
|
|
value = "home.badjware.dev"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "hass"
|
|
|
|
type = "CNAME"
|
|
|
|
value = "home.badjware.dev"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "chat"
|
|
|
|
type = "CNAME"
|
|
|
|
value = "home.badjware.dev"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|