Skip to content

Commit

Permalink
Merge pull request #284 from DFE-Digital/bootstrap-error-pages
Browse files Browse the repository at this point in the history
Move error page creation to bootstrap area
  • Loading branch information
albal authored Sep 26, 2023
2 parents 412e20a + 31551e4 commit f5b8e3f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions Terraform-bootstrap/errorpage-blob.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
resource "azurerm_storage_account" "s185errorpage-sa" {
name = "s185errorpage"
resource_group_name = var.key_vault_rg[terraform.workspace]
account_replication_type = "LRS"
account_tier = "Standard"
location = azurerm_resource_group.rg.location
}

resource "azurerm_storage_container" "s185errorpage-sc" {
name = "s185errorpage"
storage_account_name = azurerm_storage_account.s185errorpage-sa.name
}

resource "azurerm_storage_blob" "error-403" {
name = "403.html"
storage_account_name = azurerm_storage_account.s185errorpage-sa.name
storage_container_name = azurerm_storage_container.s185errorpage-sc.name
type = "Block"
source = "./Error-pages/403.html"
}

resource "azurerm_storage_blob" "error-502" {
name = "502.html"
storage_account_name = azurerm_storage_account.s185errorpage-sa.name
storage_container_name = azurerm_storage_container.s185errorpage-sc.name
type = "Block"
source = "./Error-pages/502.html"
}
25 changes: 0 additions & 25 deletions Terraform/errorpage-blob.tf.bak

This file was deleted.

0 comments on commit f5b8e3f

Please sign in to comment.