Skip to content

Commit

Permalink
⭐️ expose aws rds instance monitoring interval
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Aug 11, 2024
1 parent 658da80 commit deafeaa
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
8 changes: 6 additions & 2 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2120,6 +2120,8 @@ private aws.rds.dbcluster @defaults("id region") {
activityStreamMode string
// Status of the database activity stream
activityStreamStatus string
// Interval, in seconds, between points when Enhanced Monitoring metrics are collected
monitoringInterval int
}

// Amazon RDS snapshot
Expand Down Expand Up @@ -2158,6 +2160,8 @@ private aws.rds.snapshot @defaults("id region type encrypted createdAt") {
private aws.rds.dbinstance @defaults("id region engine engineVersion") {
// ARN for the database instance
arn string
// Identifier for the database instance
id string
// Name of the database instance
name string
// Number of days for which automated snapshots are retained
Expand All @@ -2184,8 +2188,8 @@ private aws.rds.dbinstance @defaults("id region engine engineVersion") {
deletionProtection bool
// Whether the instance is a Multi-AZ deployment
multiAZ bool
// Identifier for the database instance
id string
// Interval, in seconds, between points when Enhanced Monitoring metrics are collected
monitoringInterval int
// ARN of the CloudWatch log stream that receives the enhanced monitoring metrics data
enhancedMonitoringResourceArn string
// Tags for the database instance
Expand Down
38 changes: 31 additions & 7 deletions providers/aws/resources/aws.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions providers/aws/resources/aws.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2345,6 +2345,8 @@ resources:
masterUsername:
min_mondoo_version: 9.0.0
members: {}
monitoringInterval:
min_mondoo_version: 9.0.0
multiAZ:
min_mondoo_version: 9.0.0
port:
Expand Down Expand Up @@ -2418,6 +2420,8 @@ resources:
min_mondoo_version: 9.0.0
masterUsername:
min_mondoo_version: 9.0.0
monitoringInterval:
min_mondoo_version: 9.0.0
multiAZ: {}
name: {}
pendingMaintenanceActions:
Expand Down
2 changes: 2 additions & 0 deletions providers/aws/resources/aws_rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (a *mqlAwsRds) getDbInstances(conn *connection.AwsConnection) []*jobpool.Jo
"engine": llx.StringDataPtr(dbInstance.Engine),
"engineLifecycleSupport": llx.StringDataPtr(dbInstance.EngineLifecycleSupport),
"engineVersion": llx.StringDataPtr(dbInstance.EngineVersion),
"monitoringInterval": llx.IntDataPtr(dbInstance.MonitoringInterval),
"enhancedMonitoringResourceArn": llx.StringDataPtr(dbInstance.EnhancedMonitoringResourceArn),
"id": llx.StringDataPtr(dbInstance.DBInstanceIdentifier),
"latestRestorableTime": llx.TimeDataPtr(dbInstance.LatestRestorableTime),
Expand Down Expand Up @@ -519,6 +520,7 @@ func (a *mqlAwsRds) getDbClusters(conn *connection.AwsConnection) []*jobpool.Job
"iamDatabaseAuthentication": llx.BoolDataPtr(cluster.IAMDatabaseAuthenticationEnabled),
"activityStreamMode": llx.StringData(string(cluster.ActivityStreamMode)),
"activityStreamStatus": llx.StringData(string(cluster.ActivityStreamStatus)),
"monitoringInterval": llx.IntDataPtr(cluster.MonitoringInterval),
})
if err != nil {
return nil, err
Expand Down

0 comments on commit deafeaa

Please sign in to comment.