From 735cd582ffea872414707fce83788637171c2e3c Mon Sep 17 00:00:00 2001 From: Will Smith Date: Wed, 10 Jan 2024 13:28:28 -0600 Subject: [PATCH] Adds BackupRetentionPeriod to RDS spec (#50) * Adding BackupRetentionPeriod to RDS spec Signed-off-by: willdavsmith * Adding BackupRetentionPeriod to RDS spec Signed-off-by: willdavsmith * PR Comments Signed-off-by: willdavsmith * Adding min and max value Signed-off-by: willdavsmith --------- Signed-off-by: willdavsmith --- aws/sqldatabases.bicep | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aws/sqldatabases.bicep b/aws/sqldatabases.bicep index 7367772..e3bcdd2 100644 --- a/aws/sqldatabases.bicep +++ b/aws/sqldatabases.bicep @@ -50,6 +50,11 @@ param allocatedStorage string = '20' @description('Database license model') param licenseModel string = 'license-included' +@description('The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Defaults to 1.') +@minValue(0) +@maxValue(35) +param backupRetentionPeriod int = 1 + @description('Database port') param port int = 1433 @@ -98,6 +103,7 @@ resource rdsDBInstance 'AWS.RDS/DBInstance@default' = { DBSubnetGroupName: rdsDBSubnetGroup.properties.DBSubnetGroupName VPCSecurityGroups: [eksCluster.properties.ClusterSecurityGroupId] LicenseModel: licenseModel + BackupRetentionPeriod: backupRetentionPeriod Tags: [ { Key: 'radapp.io/environment'