From b541b3d3c98debbfa9f32892b55d042401e279b2 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 29 Dec 2020 16:20:23 -0500 Subject: [PATCH] website: teach Terraform about the "legacy" web frontend resource group --- website/variables.tf | 4 ++++ website/web-frontend.tf | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 website/web-frontend.tf diff --git a/website/variables.tf b/website/variables.tf index 61eb7c2..6448841 100644 --- a/website/variables.tf +++ b/website/variables.tf @@ -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" } diff --git a/website/web-frontend.tf b/website/web-frontend.tf new file mode 100644 index 0000000..12ef878 --- /dev/null +++ b/website/web-frontend.tf @@ -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 + } +}