diff --git a/azure-resourcegroups.tf b/azure-resourcegroups.tf index a0458ec..a1092fa 100644 --- a/azure-resourcegroups.tf +++ b/azure-resourcegroups.tf @@ -16,4 +16,9 @@ resource "azurerm_resource_group" "rg-cv-staticwebapp" { resource "azurerm_resource_group" "rg-hanyadikhet-functionapp" { name = "rg-hanyadikhet-functionapp" location = "westeurope" -} \ No newline at end of file +} + +resource "azurerm_resource_group" "rg-landingpage-staticwebapp" { + name = "rg-landingpage-staticwebapp" + location = "westeurope" +} diff --git a/azure-staticwebapps.tf b/azure-staticwebapps.tf index ed0a017..26154d0 100644 --- a/azure-staticwebapps.tf +++ b/azure-staticwebapps.tf @@ -16,9 +16,9 @@ resource "azurerm_static_site" "personal-site" { location = azurerm_resource_group.rg-personalsite-staticwebapp.location } -resource "azurerm_static_site_custom_domain" "wwwtormakristofeu" { +resource "azurerm_static_site_custom_domain" "blogtormakristofeu" { static_site_id = azurerm_static_site.personal-site.id - domain_name = "www.tormakristof.eu" + domain_name = "blog.tormakristof.eu" validation_type = "cname-delegation" } @@ -33,3 +33,15 @@ resource "azurerm_static_site_custom_domain" "cvtormakristofeu" { domain_name = "cv.tormakristof.eu" validation_type = "cname-delegation" } + +resource "azurerm_static_site" "landingpage" { + name = "cv" + 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" +} \ No newline at end of file