Skip to content

Commit 5f8ce98

Browse files
committed
chore: because azure has no "POSTGRESQL" in West Germany mi mi mi ...unbelievable
chore: because azure has no "POSTGRESQL" in West Germany mi mi mi ...unbelievable
1 parent 0bfeee1 commit 5f8ce98

File tree

1 file changed

+4
-4
lines changed
  • modules/aks/postgresql/buildingblock

1 file changed

+4
-4
lines changed

modules/aks/postgresql/buildingblock/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ resource "random_password" "administrator_password" {
99
}
1010

1111
resource "azurerm_postgresql_flexible_server" "db_instance" {
12-
name = "${var.workspace_identifier}-${var.project_identifier}-${var.name}"
13-
location = "North Europe"
12+
name = "${var.workspace_identifier}-${var.project_identifier}-${var.name}"
13+
resource_group_name = local.resource_group_name
14+
location = "West Europe"
15+
1416
delegated_subnet_id = local.subnet_id
1517
private_dns_zone_id = local.private_dns_zone_id
1618
public_network_access_enabled = false
@@ -28,7 +30,6 @@ resource "azurerm_postgresql_flexible_server" "db_instance" {
2830
ignore_changes = [zone]
2931
}
3032
}
31-
3233
resource "kubernetes_secret" "credentials" {
3334
metadata {
3435
namespace = var.namespace
@@ -48,4 +49,3 @@ resource "kubernetes_secret" "credentials" {
4849
output "secret_name" {
4950
value = kubernetes_secret.credentials.metadata[0].name
5051
}
51-

0 commit comments

Comments
 (0)