This repository has been archived on 2023-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
cloud-resources/azure-staticwebapps.tf

71 lines
2.6 KiB
HCL

resource "azurerm_static_site" "tormakristofeu" {
name = "tormakristofeu"
resource_group_name = azurerm_resource_group.rg-static-site.name
location = azurerm_resource_group.rg-static-site.location
}
resource "azurerm_static_site_custom_domain" "statictormakristofeu" {
static_site_id = azurerm_static_site.tormakristofeu.id
domain_name = "static.tormakristof.eu"
validation_type = "cname-delegation"
}
resource "azurerm_static_site" "personal-site" {
name = "personal-site"
resource_group_name = azurerm_resource_group.rg-personalsite-staticwebapp.name
location = azurerm_resource_group.rg-personalsite-staticwebapp.location
}
resource "azurerm_static_site_custom_domain" "blogtormakristofeu" {
static_site_id = azurerm_static_site.personal-site.id
domain_name = "blog.tormakristof.eu"
validation_type = "cname-delegation"
}
resource "azurerm_static_site" "cv" {
name = "cv"
resource_group_name = azurerm_resource_group.rg-cv-staticwebapp.name
location = azurerm_resource_group.rg-cv-staticwebapp.location
}
resource "azurerm_static_site_custom_domain" "cvtormakristofeu" {
static_site_id = azurerm_static_site.cv.id
domain_name = "cv.tormakristof.eu"
validation_type = "cname-delegation"
}
resource "azurerm_static_site" "landingpage" {
name = "landingpage"
resource_group_name = azurerm_resource_group.rg-landingpage-staticwebapp.name
location = azurerm_resource_group.rg-landingpage-staticwebapp.location
}
resource "azurerm_static_site_custom_domain" "wwwtormakristofeu" {
static_site_id = azurerm_static_site.landingpage.id
domain_name = "www.tormakristof.eu"
validation_type = "cname-delegation"
}
resource "azurerm_static_site" "kmlabz" {
name = "kmlabz"
resource_group_name = azurerm_resource_group.rg-kmlabz-staticwebapp.name
location = azurerm_resource_group.rg-kmlabz-staticwebapp.location
}
resource "azurerm_static_site_custom_domain" "wwwkmlabzcom" {
static_site_id = azurerm_static_site.kmlabz.id
domain_name = "www.kmlabz.com"
validation_type = "cname-delegation"
}
resource "azurerm_static_site" "hhv" {
name = "hhv"
resource_group_name = azurerm_resource_group.rg-hhv-staticwebapp.name
location = azurerm_resource_group.rg-hhv-staticwebapp.location
}
resource "azurerm_static_site_custom_domain" "hhvtormakristofeu" {
static_site_id = azurerm_static_site.hhv.id
domain_name = "hhv.tormakristof.eu"
validation_type = "cname-delegation"
}