Skip to content

Commit

Permalink
Enable advanced Database Insights
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Feb 10, 2025
1 parent 5ca01f9 commit 2790875
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/shared-apps-aurora-pg/database-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Resources:
UpdateReplacePolicy: Retain
Properties:
# BackupRetentionPeriod
DatabaseInsightsMode: advanced
DBSubnetGroupName: !Ref DbSubnetGroup
DeletionProtection: true
EnableCloudwatchLogsExports:
Expand All @@ -107,6 +108,8 @@ Resources:
- HasMasterUserCredentials
- !Ref DbClusterMasterUserPassword
- !Ref AWS::NoValue
PerformanceInsightsEnabled: !If [IsProduction, true, false]
PerformanceInsightsRetentionPeriod: !If [IsProduction, 465, !Ref AWS::NoValue]
# PreferredBackupWindow
# PreferredMaintenanceWindow
StorageType: !If
Expand Down Expand Up @@ -140,7 +143,7 @@ Resources:
EnablePerformanceInsights: true
# MonitoringInterval
# MonitoringRoleArn
# PerformanceInsightsRetentionPeriod
PerformanceInsightsRetentionPeriod: !If [IsProduction, 465, !Ref AWS::NoValue]
# PreferredMaintenanceWindow
# PubliclyAccessible
Tags:
Expand Down

0 comments on commit 2790875

Please sign in to comment.