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
Torma Kristóf 94478ce0ec
All checks were successful
continuous-integration/drone/push Build is passing
reference location of resource group in static sites
2022-05-17 17:59:30 +02:00

36 lines
1.3 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" "wwwtormakristofeu" {
static_site_id = azurerm_static_site.personal-site.id
domain_name = "www.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"
}