Skip to content

Commit 60c542c

Browse files
committed
chore: database logs export retention to 3 days
1 parent 30892c9 commit 60c542c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

VirtualFinland.UsersAPI.Deployment/Features/PostgresDatabase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void SetupProductionPostgresDatabase(Config config, StackSetup stackSetup
115115
DatabaseAdminConnectionString = Output.Format($"Host={DbEndpoint};Database={DbName};Username={DbAdminUsername};Password={DbAdminPassword}");
116116
DBIdentifier = dbInstance.Identifier;
117117

118-
LogGroup = cloudwatch.CreateLogGroup(stackSetup, "database", Output.Format($"/aws/rds/cluster/{auroraCluster.ClusterIdentifier}/postgresql"));
118+
LogGroup = cloudwatch.CreateLogGroup(stackSetup, "database", Output.Format($"/aws/rds/cluster/{auroraCluster.ClusterIdentifier}/postgresql"), 3);
119119
}
120120

121121
/// <summary>
@@ -166,7 +166,7 @@ public void SetupDevelopmentPostgresDatabase(Config config, StackSetup stackSetu
166166
DatabaseAdminConnectionString = Output.Format($"Host={DbEndpoint};Database={DbName};Username={DbAdminUsername};Password={DbAdminPassword}");
167167
DBIdentifier = rdsPostgreSqlInstance.Identifier;
168168

169-
LogGroup = cloudwatch.CreateLogGroup(stackSetup, "database", Output.Format($"/aws/rds/instance/{rdsPostgreSqlInstance.Identifier}/postgresql"));
169+
LogGroup = cloudwatch.CreateLogGroup(stackSetup, "database", Output.Format($"/aws/rds/instance/{rdsPostgreSqlInstance.Identifier}/postgresql"), 3);
170170
}
171171

172172
/// <summary>

0 commit comments

Comments
 (0)