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-460] Added new storage account iopsteucovidcert for ITN migration #1280

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
CES-460-migrate-iopsteucovidcert private endpoint added
ccuffari committed Nov 7, 2024
commit d2d10a5250358661385040a7e419be915795fcff
21 changes: 21 additions & 0 deletions src/domains/eucovidcert/_modules/storage_accounts/data.tf
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not use data inside a child module, but in the main one and then use variables to pass values along

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
data "azurerm_virtual_network" "vnet_itn" {
name = "${var.project}-itn-common-vnet-01"
resource_group_name = "${var.project}-itn-common-rg-01"
}

data "azurerm_subnet" "subnet_private_endpoints_itn" {
name = "io-p-itn-pep-snet-01 "
resource_group_name = data.azurerm_virtual_network.vnet_itn.resource_group_name
virtual_network_name = data.azurerm_virtual_network.vnet_itn.name
}

data "azurerm_monitor_action_group" "status_action_group" {
name = "SLACK IO_STATUS"
resource_group_name = "${local.prefix}-${local.env_short}-rg-common"
}


data "azurerm_monitor_action_group" "operations_action_group" {
name = "IO OPERATIONS"
resource_group_name = "${local.prefix}-${local.env_short}-rg-operations"
}
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@ module "azure_storage_account" {
resource_group_name = var.resource_group_name
access_tier = "Hot"

subnet_pep_id = data.azurerm_subnet.subnet_pep_itn.id
private_dns_zone_resource_group_name = "${local.prefix}-${local.env_short}-itn-common-rg-01"

subservices_enabled = {
blob = false
file = false
@@ -31,6 +34,6 @@ module "azure_storage_account" {
}

force_public_network_access_enabled = true
action_group_id = data.azurerm_monitor_action_group.example.id ###TO CHECK
action_group_id = data.azurerm_monitor_action_group.status_action_group.id ###TO CHECK
tags = var.tags
}