website: teach Terraform about the "legacy" web frontend resource group

This commit is contained in:
Peter Williams 2020-12-29 16:20:23 -05:00
Родитель f5981435aa
Коммит b541b3d3c9
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -23,6 +23,10 @@ variable "legacyNameCommunitiesStorage" {
description = "The name to use for the 'legacy' storage account equivalent to 'wwtcommunity' in production"
}
variable "legacyNameFrontendGroup" {
description = "The name to use for the 'legacy' web frontend resource group"
}
variable "legacyNameWwtcoreDBServer" {
description = "The name to use for the 'legacy' SQL server with the AstroObjects and WWTTours databases"
}

10
website/web-frontend.tf Normal file
Просмотреть файл

@ -0,0 +1,10 @@
# Terraform definitions of WWT's web frontend: the App Gateway, CDN setup, etc.
resource "azurerm_resource_group" "web_frontend_legacy" {
name = var.legacyNameFrontendGroup
location = var.location
lifecycle {
prevent_destroy = true
}
}