Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CES-473] Added new storage account iopselfcaresa for ITN migration #1287

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
32 changes: 32 additions & 0 deletions src/domains/selfcare/_modules/cdn/cdn_selfcare.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,35 @@ module "cdn_selfcare" {

tags = var.tags
}

module "cdn_selfcare_itn" {
source = "github.com/pagopa/dx//infra/modules/azure_storage_account?ref=main"

environment = local.itn_environment
resource_group_name = var.resource_group_name
tier = "l"

subnet_pep_id = module.common_values.pep_subnets.itn.id
private_dns_zone_resource_group_name = module.common_values.resource_groups.weu.common

subservices_enabled = {
blob = true
file = false
queue = false
table = false
}

blob_features = {
versioning = true
}

force_public_network_access_enabled = true

static_website = {
enabled = true
index_document = "index.html"
error_404_document = "index.html"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking from the portal and the code, the error_404_document is set to 404.html

Suggested change
error_404_document = "index.html"
error_404_document = "404.html"

}

tags = var.tags
}
16 changes: 16 additions & 0 deletions src/domains/selfcare/_modules/cdn/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
###Italy North
locals {
prefix = "io"
env_short = "p"
# domain = "selfcare"
app_name = "selfcare"
instance_number = "01"
itn_environment = {
prefix = local.prefix
env_short = local.env_short
location = var.location
# domain = local.domain
app_name = local.app_name
instance_number = local.instance_number
}
}
5 changes: 5 additions & 0 deletions src/domains/selfcare/_modules/cdn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ terraform {
}

data "azurerm_subscription" "current" {}


module "common_values" {
source = "github.com/pagopa/io-infra//src/_modules/common_values?ref=main"
}
Loading