Skip to content

Commit

Permalink
feat: Adding AwsMskTopic to AwsMskBroker relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
dsankaraganti committed Jan 8, 2025
1 parent 5e8be02 commit 3d07918
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
20 changes: 20 additions & 0 deletions relationships/candidates/AWSMSKBROKER.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
category: AWSMSKBROKER
lookups:
- entityTypes:
- domain: INFRA
type: AWSMSKBROKER
tags:
matchingMode: ALL
predicates:
- tagKeys: ["aws.accountId"]
field: awsAccountId
- tagKeys: ["aws.region"]
field: awsRegion
- tagKeys: ["aws.kafka.ClusterName"]
field: awsMskClusterName
- tagKeys: ["aws.kafka.BrokerID"]
field: awsMskBrokerId
onMatch:
onMultipleMatches: RELATE_ALL
onMiss:
action: NO_OP
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
relationships:
- name: awsMskBrokerManagesAwsMskTopic
version: "1"
origins:
- AWS Integration
conditions:
- attribute: eventType
anyOf: [ "Metric" ]
- attribute: entity.type
anyOf: [ "AWSMSKTOPIC", "AWS_MSK_TOPIC" ]
relationship:
expires: P75M
relationshipType: CONTAINS
source:
lookupGuid:
candidateCategory: AWSMSKBROKER
fields:
- field: awsAccountId
attribute: aws.accountId
- field: awsRegion
attribute: aws.region
- field: awsMskClusterName
attribute: aws.kafka.ClusterName
- field: awsMskBrokerId
attribute: aws.kafka.BrokerID
target:
extractGuid:
attribute: entity.guid
entityType:
value: AWSMSKTOPIC

0 comments on commit 3d07918

Please sign in to comment.