Skip to content

Commit

Permalink
Add logging and log analytics workspace terraform code
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKChristou committed Oct 14, 2024
1 parent ad05e52 commit 9e870ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module "postgresql_v15" {
providers = {
azurerm.postgres_network = azurerm.postgres_network
}

admin_user_object_id = var.jenkins_AAD_objectId
business_area = "cft"
common_tags = var.common_tags
Expand Down Expand Up @@ -156,3 +156,10 @@ resource "azurerm_key_vault_secret" "POSTGRES_DATABASE" {
value = var.database_name
key_vault_id = data.azurerm_key_vault.ccd_shared_key_vault.id
}
resource "azurerm_log_analytics_workspace" "LOG_ANALYTICS_WORKSPACE" {
name = "ccd-log-analytics"
resource_group_name = "${local.sharedResourceGroup}"
location = "${var.location}"
sku = "PerGB2018"
retention_in_days = 30
}

0 comments on commit 9e870ae

Please sign in to comment.