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

36 lines
1.3 KiB
Terraform
Raw Normal View History

2022-04-25 19:46:21 +02:00
resource "azurerm_static_site" "tormakristofeu" {
name = "tormakristofeu"
2022-05-17 17:42:19 +02:00
resource_group_name = azurerm_resource_group.rg-static-site.name
location = azurerm_resource_group.rg-static-site.location
2022-04-25 22:30:25 +02:00
}
resource "azurerm_static_site_custom_domain" "statictormakristofeu" {
static_site_id = azurerm_static_site.tormakristofeu.id
domain_name = "static.tormakristof.eu"
validation_type = "cname-delegation"
2022-04-25 19:46:21 +02:00
}
resource "azurerm_static_site" "personal-site" {
name = "personal-site"
2022-05-17 17:42:19 +02:00
resource_group_name = azurerm_resource_group.rg-personalsite-staticwebapp.name
location = azurerm_resource_group.rg-personalsite-staticwebapp.location
2022-04-25 22:30:25 +02:00
}
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"
2022-04-25 19:46:21 +02:00
}
2022-04-27 20:13:16 +02:00
resource "azurerm_static_site" "cv" {
name = "cv"
2022-05-17 17:42:19 +02:00
resource_group_name = azurerm_resource_group.rg-cv-staticwebapp.name
location = azurerm_resource_group.rg-cv-staticwebapp.location
2022-04-27 20:13:16 +02:00
}
2022-04-27 20:25:25 +02:00
resource "azurerm_static_site_custom_domain" "cvtormakristofeu" {
static_site_id = azurerm_static_site.cv.id
domain_name = "cv.tormakristof.eu"
validation_type = "cname-delegation"
}