Skip to content

Commit

Permalink
feat: Renamed core and pillar folders (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa authored Aug 3, 2023
1 parent 1265bfe commit faae3b8
Show file tree
Hide file tree
Showing 54 changed files with 1,480 additions and 1,480 deletions.
135 changes: 101 additions & 34 deletions src/core/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
73 changes: 58 additions & 15 deletions src/core/01_network.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,59 @@
# Subnet to host the api config
module "private_endpoints_snet" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v6.3.1"
name = "${local.program}-private-endpoints-snet"
address_prefixes = var.cidr_subnet_private_endpoints
virtual_network_name = data.azurerm_virtual_network.vnet.name

resource_group_name = data.azurerm_resource_group.rg_vnet.name

private_endpoint_network_policies_enabled = false
service_endpoints = [
"Microsoft.Web",
"Microsoft.AzureCosmosDB",
"Microsoft.Storage",
]
resource "azurerm_resource_group" "rg_vnet" {
name = local.vnet_resource_group_name
location = var.location

tags = var.tags
}

# vnet
module "vnet" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//virtual_network?ref=v4.1.0"
name = local.vnet_name
location = azurerm_resource_group.rg_vnet.location
resource_group_name = azurerm_resource_group.rg_vnet.name
address_space = var.cidr_vnet

tags = var.tags
}

## Application gateway public ip ##
resource "azurerm_public_ip" "appgateway_public_ip" {
name = local.appgateway_public_ip_name
resource_group_name = azurerm_resource_group.rg_vnet.name
location = azurerm_resource_group.rg_vnet.location
sku = "Standard"
allocation_method = "Static"

zones = [1, 2, 3]

tags = var.tags
}

resource "azurerm_public_ip" "appgateway_beta_public_ip" {
name = local.appgateway_beta_public_ip_name
resource_group_name = azurerm_resource_group.rg_vnet.name
location = azurerm_resource_group.rg_vnet.location
sku = "Standard"
allocation_method = "Static"

zones = [1, 2, 3]

tags = var.tags
}

#
# ⛴ AKS public IP
#
resource "azurerm_public_ip" "aks_outbound" {
count = var.aks_num_outbound_ips

name = "${local.aks_public_ip_name}-${count.index + 1}"
location = azurerm_resource_group.rg_vnet.location
resource_group_name = azurerm_resource_group.rg_vnet.name
sku = "Standard"
allocation_method = "Static"

zones = [1, 2, 3]

tags = var.tags
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions src/core/99_main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
terraform {
required_version = ">=1.3.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 3.33.0,<= 3.53.0"
version = "<= 3.53.0"
}
azuread = {
source = "hashicorp/azuread"
version = "= 2.10.0"
}
null = {
version = "= 3.1.0"
}

}

backend "azurerm" {}
Expand Down
7 changes: 5 additions & 2 deletions src/core/99_main.tf.ci
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
terraform {
required_version = ">=1.3.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 3.33.0,<= 3.53.0"
version = "<= 3.53.0"
}
azuread = {
source = "hashicorp/azuread"
version = "= 2.10.0"
}
null = {
version = "= 3.1.0"
}

}

}
Expand Down
Loading

0 comments on commit faae3b8

Please sign in to comment.