Skip to content

Commit

Permalink
chore: fix load balancer relationship direction
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Jul 12, 2024
1 parent 319e6ea commit 336953f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scrapers/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1345,13 +1345,13 @@ func (aws Scraper) loadBalancers(ctx *AWSContext, config v1.AWS, results *v1.Scr
for _, instance := range lb.Instances {
relationships = append(relationships, v1.RelationshipResult{
ConfigExternalID: v1.ExternalID{
ExternalID: []string{*lb.LoadBalancerName},
ConfigType: v1.AWSLoadBalancer,
},
RelatedExternalID: v1.ExternalID{
ExternalID: []string{*instance.InstanceId},
ConfigType: v1.AWSEC2Instance,
},
RelatedExternalID: v1.ExternalID{
ExternalID: []string{*lb.LoadBalancerName},
ConfigType: v1.AWSLoadBalancer,
},
Relationship: "LoadBalancerInstance",
})
}
Expand Down

0 comments on commit 336953f

Please sign in to comment.