Skip to content

Commit

Permalink
fix(rds-instance): filter out neptune instances
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Dec 13, 2024
1 parent 53a2f70 commit e3a0fd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/rds-instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"context"
"time"

"github.com/gotidy/ptr"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/rds"

Expand Down Expand Up @@ -52,6 +54,12 @@ func (l *RDSInstanceLister) List(_ context.Context, o interface{}) ([]resource.R

resources := make([]resource.Resource, 0)
for _, instance := range resp.DBInstances {
// Note: NeptuneInstance handles Neptune instances
if ptr.ToString(instance.Engine) == "neptune" {
opts.Logger.Debug("skipping neptune instance, it is handled by NeptuneInstance")
continue
}

tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{
ResourceName: instance.DBInstanceArn,
})
Expand Down

0 comments on commit e3a0fd3

Please sign in to comment.