Skip to content

Commit

Permalink
SDT-168: SDT: Allow database retention period to be specified on an e…
Browse files Browse the repository at this point in the history
…nvironment basis (#285)

* Update Terraform azurerm to v3.75.0

* Update dependency commons-io:commons-io to v2.14.0

* SDT-168: SDT: Allow database retention period to be specified on an environment basis

* SDT-168: SDT: Allow database retention period to be specified on an environment basis

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
kiran-yenigala-hmcts and renovate[bot] authored Oct 2, 2023
1 parent 7a237e2 commit 607cfe1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ allprojects {
implementation group: 'com.vladmihalcea', name: 'hibernate-types-52', version: '2.21.1'
implementation group: 'com.zaxxer', name: 'HikariCP', version: '4.0.3'
implementation group: 'commons-collections', name: 'commons-collections', version: '3.2.2'
implementation group: 'commons-io', name: 'commons-io', version: '2.13.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.14.0'
implementation(group: 'io.rest-assured', name: 'rest-assured') {
exclude group: 'com.github.tomakehurst', module: 'wiremock-standalone'
exclude group: 'commons-beanutils', module: 'commons-beanutils'
Expand Down
1 change: 1 addition & 0 deletions infrastructure/aat.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
database_backup_retention_days=7
1 change: 1 addition & 0 deletions infrastructure/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module "postgresql" {
]
pgsql_version = "11"
product = var.product
backup_retention_days= "${var.database_backup_retention_days}"
}

# Create secret for database user
Expand Down
1 change: 1 addition & 0 deletions infrastructure/demo.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
database_backup_retention_days=7
1 change: 1 addition & 0 deletions infrastructure/ithc.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
database_backup_retention_days=7
1 change: 1 addition & 0 deletions infrastructure/perftest.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
database_backup_retention_days=7
2 changes: 1 addition & 1 deletion infrastructure/state.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ terraform {
}
azurerm = {
source = "hashicorp/azurerm"
version = "3.74.0" # AzureRM provider version
version = "3.75.0" # AzureRM provider version
}
}
}
6 changes: 6 additions & 0 deletions infrastructure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ variable "jenkins_AAD_objectId" {
}

variable "aks_subscription_id" {}

variable "database_backup_retention_days" {
default = 35
description = "Backup retention period in days for the PGSql instance. Valid values are between 7 & 35 days"
}

0 comments on commit 607cfe1

Please sign in to comment.