Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
marycrawford committed Dec 12, 2024
1 parent e22c82c commit 53bd7bc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions ops/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ module "ocr_autoscale" {
module "database" {
source = "./modules/database"
env = local.environment
name = var.name
resource_group_name = data.azurerm_resource_group.rg.name
db_subnet = module.networking.dbsubnet_id
private_dns_zone_id = module.networking.private_dns_zone_id
Expand Down
2 changes: 1 addition & 1 deletion ops/terraform/modules/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# As a result we are using Azure Database for PostgreSQL Flexible Server
# with granular control, flexibility and better cost optimization.
resource "azurerm_postgresql_flexible_server" "postgres_flexible_server" {
name = "reportvisionpostgresql-flexible-server-${var.env}"
name = "${var.name}postgresql-fs-${var.env}"
location = var.location
resource_group_name = var.resource_group_name
sku_name = var.postgres_sku_name
Expand Down
5 changes: 5 additions & 0 deletions ops/terraform/modules/database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ variable "location" {
default = "eastus2"
}

variable "name" {
type = string
description = "The name of the Project"
}

variable "resource_group_name" {
type = string
description = "The Azure Resource Group to deploy to"
Expand Down
2 changes: 1 addition & 1 deletion ops/terraform/modules/vault/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "azurerm_key_vault" "this" {
resource_group_name = var.resource_group_name
sku_name = "standard"
tenant_id = data.azurerm_client_config.current.tenant_id
purge_protection_enabled = true
purge_protection_enabled = false

access_policy {
tenant_id = data.azurerm_client_config.current.tenant_id
Expand Down
1 change: 0 additions & 1 deletion ops/terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
variable "client_id" {}
variable "name" {}
variable "postgres_server_id" {}
variable "object_id" {}
variable "tenant_id" {}

Expand Down

0 comments on commit 53bd7bc

Please sign in to comment.