Skip to content

Commit

Permalink
remove retention policy (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
heoelri authored Aug 16, 2023
1 parent 60b7a69 commit e133f88
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 161 deletions.
6 changes: 3 additions & 3 deletions .ado/pipelines/config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ variables:
value: 'foundational-connected'

- name: 'terraformVersion' # Terraform Version
value: '1.4.1'
value: '1.5.5-*'
- name: 'kubernetesVersion' # kubernetes version used for aks clusters
value: '1.26.3'
value: '1.26.6'
- name: 'helmVersion' # helm package manager version
value: 'v3.11.3'
value: 'v3.12.3'
- name: 'ingressNginxVersion' # nginx ingress controller helm chart version
value: '4.6.0'
- name: 'certManagerVersion' # cert-manager helm chart version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ resource "azurerm_monitor_diagnostic_setting" "diag_settings_afd" {

content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -27,10 +22,6 @@ resource "azurerm_monitor_diagnostic_setting" "diag_settings_afd" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Expand All @@ -50,10 +41,6 @@ resource "azurerm_monitor_diagnostic_setting" "acr" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -65,10 +52,6 @@ resource "azurerm_monitor_diagnostic_setting" "acr" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.63.0"
version = "3.69.0"
}
}

Expand Down
48 changes: 0 additions & 48 deletions src/infra/monitoring/grafana/terraform/stamps/la-wspace-config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ resource "azurerm_monitor_diagnostic_setting" "appservice" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -29,10 +25,6 @@ resource "azurerm_monitor_diagnostic_setting" "appservice" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Expand All @@ -51,10 +43,6 @@ resource "azurerm_monitor_diagnostic_setting" "pgprimary" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -66,10 +54,6 @@ resource "azurerm_monitor_diagnostic_setting" "pgprimary" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Expand All @@ -87,10 +71,6 @@ resource "azurerm_monitor_diagnostic_setting" "pgreplica" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -102,10 +82,6 @@ resource "azurerm_monitor_diagnostic_setting" "pgreplica" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Expand All @@ -125,10 +101,6 @@ resource "azurerm_monitor_diagnostic_setting" "vnet" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -140,10 +112,6 @@ resource "azurerm_monitor_diagnostic_setting" "vnet" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Expand All @@ -163,10 +131,6 @@ resource "azurerm_monitor_diagnostic_setting" "asp" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -178,10 +142,6 @@ resource "azurerm_monitor_diagnostic_setting" "asp" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Expand All @@ -201,10 +161,6 @@ resource "azurerm_monitor_diagnostic_setting" "akv" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -216,10 +172,6 @@ resource "azurerm_monitor_diagnostic_setting" "akv" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
2 changes: 1 addition & 1 deletion src/infra/monitoring/grafana/terraform/stamps/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.63.0"
version = "3.69.0"
}
}

Expand Down
8 changes: 0 additions & 8 deletions src/infra/workload/globalresources/acr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ resource "azurerm_monitor_diagnostic_setting" "acr" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -61,10 +57,6 @@ resource "azurerm_monitor_diagnostic_setting" "acr" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
8 changes: 0 additions & 8 deletions src/infra/workload/globalresources/cosmosdb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ resource "azurerm_monitor_diagnostic_setting" "cosmosdb" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -144,10 +140,6 @@ resource "azurerm_monitor_diagnostic_setting" "cosmosdb" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
8 changes: 0 additions & 8 deletions src/infra/workload/globalresources/frontdoor.tf
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,6 @@ resource "azurerm_monitor_diagnostic_setting" "frontdoor" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -334,10 +330,6 @@ resource "azurerm_monitor_diagnostic_setting" "frontdoor" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
2 changes: 1 addition & 1 deletion src/infra/workload/globalresources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.63.0"
version = "3.69.0"
}
}

Expand Down
8 changes: 0 additions & 8 deletions src/infra/workload/globalresources/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ resource "azurerm_monitor_diagnostic_setting" "storage_global" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -61,10 +57,6 @@ resource "azurerm_monitor_diagnostic_setting" "storage_global" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
2 changes: 1 addition & 1 deletion src/infra/workload/ingress_private_connections/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.63.0"
version = "3.69.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/infra/workload/releaseunit/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.63.0"
version = "3.69.0"
}
}

Expand Down
8 changes: 0 additions & 8 deletions src/infra/workload/releaseunit/modules/stamp/eventhub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ resource "azurerm_monitor_diagnostic_setting" "eventhub" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -93,10 +89,6 @@ resource "azurerm_monitor_diagnostic_setting" "eventhub" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
8 changes: 0 additions & 8 deletions src/infra/workload/releaseunit/modules/stamp/keyvault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ resource "azurerm_monitor_diagnostic_setting" "kv" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -95,10 +91,6 @@ resource "azurerm_monitor_diagnostic_setting" "kv" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
8 changes: 0 additions & 8 deletions src/infra/workload/releaseunit/modules/stamp/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ resource "azurerm_monitor_diagnostic_setting" "aks" {
content {
category = entry.value

retention_policy {
enabled = true
days = 30
}
}
}

Expand All @@ -140,10 +136,6 @@ resource "azurerm_monitor_diagnostic_setting" "aks" {
category = entry.value
enabled = true

retention_policy {
enabled = true
days = 30
}
}
}
}
Loading

0 comments on commit e133f88

Please sign in to comment.