Skip to content

Commit

Permalink
Merge pull request #129 from hotosm/enhance/container-subnet
Browse files Browse the repository at this point in the history
Add subnet for container apps
  • Loading branch information
eternaltyro authored Jul 18, 2023
2 parents 53afabc + 51003ad commit 74194c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions infra/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ resource "azurerm_subnet" "raw-data" {
service_endpoints = ["Microsoft.KeyVault"]
}

resource "azurerm_subnet" "raw-data-containers" {
#ts:skip=accurics.azure.NS.161 [TODO] Give the VNet subnet a network security group
name = join("-", [var.project_name, "containers", var.deployment_environment])
resource_group_name = azurerm_resource_group.raw-data.name
virtual_network_name = azurerm_virtual_network.raw-data.name
address_prefixes = [cidrsubnet(azurerm_virtual_network.raw-data.address_space[0], 5, 1)]

service_endpoints = ["Microsoft.KeyVault"]
}

resource "azurerm_subnet" "raw-data-db" {
#ts:skip=accurics.azure.NS.161 [TODO] Give the VNet subnet a network security group
name = join("-", [var.project_name, "database", var.deployment_environment])
Expand Down Expand Up @@ -338,6 +348,12 @@ resource "azurerm_postgresql_flexible_server" "raw-data" {

version = 14
zone = "1"

lifecycle {
ignore_changes = [
storage_mb,
]
}
}

resource "azurerm_postgresql_flexible_server_configuration" "raw-data-postgis" {
Expand Down

0 comments on commit 74194c3

Please sign in to comment.