Skip to content

Commit cdb2e78

Browse files
authored
Add missing index html to cdn (#637)
1 parent cb39656 commit cdb2e78

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

infra/resources/psn/prod/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ The diagram below shows the resources actually deployed. This is a work in progr
7777
| [azurerm_storage_account.cdn](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account) | resource |
7878
| [azurerm_storage_account_static_website.cdn](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account_static_website) | resource |
7979
| [azurerm_storage_blob.healthcheck](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_blob) | resource |
80+
| [azurerm_storage_blob.index](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_blob) | resource |
8081
| [azurerm_storage_container.exchange](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
8182
| [azurerm_storage_container.hub_spid_login](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
8283
| [azurerm_storage_container.pdnd](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
8384
| [azurerm_storage_container.probes](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
85+
| [azurerm_storage_container.root](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
8486
| [azurerm_storage_container.well_known](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
8587
| [azurerm_subnet.apim](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet) | resource |
8688
| [azurerm_subnet_route_table_association.apim_apps](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet_route_table_association) | resource |

infra/resources/psn/prod/cdn.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ resource "azurerm_storage_container" "probes" {
6363
container_access_type = "container"
6464
}
6565

66+
resource "azurerm_storage_container" "root" {
67+
name = "$root"
68+
storage_account_id = azurerm_storage_account.cdn.id
69+
container_access_type = "container"
70+
}
71+
6672
resource "azurerm_storage_blob" "healthcheck" {
6773
name = "healthcheck.txt"
6874
storage_account_name = azurerm_storage_account.cdn.name
@@ -72,6 +78,15 @@ resource "azurerm_storage_blob" "healthcheck" {
7278
content_type = "text/plain"
7379
}
7480

81+
resource "azurerm_storage_blob" "index" {
82+
name = "index.html"
83+
storage_account_name = azurerm_storage_account.cdn.name
84+
storage_container_name = azurerm_storage_container.root.name
85+
type = "Block"
86+
source_content = ""
87+
content_type = "text/html"
88+
}
89+
7590
module "cdn" {
7691
source = "pagopa-dx/azure-cdn/azurerm"
7792
version = "~> 0.3"

0 commit comments

Comments
 (0)