Skip to content

Commit

Permalink
Adds BackupRetentionPeriod to RDS spec (#50)
Browse files Browse the repository at this point in the history
* Adding BackupRetentionPeriod to RDS spec

Signed-off-by: willdavsmith <willdavsmith@gmail.com>

* Adding BackupRetentionPeriod to RDS spec

Signed-off-by: willdavsmith <willdavsmith@gmail.com>

* PR Comments

Signed-off-by: willdavsmith <willdavsmith@gmail.com>

* Adding min and max value

Signed-off-by: willdavsmith <willdavsmith@gmail.com>

---------

Signed-off-by: willdavsmith <willdavsmith@gmail.com>
  • Loading branch information
willdavsmith authored Jan 10, 2024
1 parent 511da0b commit 735cd58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aws/sqldatabases.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 735cd58

Please sign in to comment.