Skip to content

Commit

Permalink
fix: Fixes AWS entity synthesis rules out of logs so they use "NA" in…
Browse files Browse the repository at this point in the history
… the generated GUIDs (#1829)

Co-authored-by: Mili <[email protected]>
  • Loading branch information
jsubirat and mborroni authored Dec 20, 2024
1 parent 1b8bfde commit 9e5af61
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entity-types/infra-awsalb/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ synthesis:
- identifier: entityId
name: aws.alb.loadBalancer
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -39,6 +41,8 @@ synthesis:
- identifier: aws.Arn
name: aws.alb.loadBalancer
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-awscloudfrontdistribution/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ synthesis:
- identifier: entityId
name: aws.cloudfront.DistributionId
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -31,6 +33,8 @@ synthesis:
- identifier: aws.Arn
name: aws.cloudfront.DistributionId
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-awselb/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ synthesis:
- identifier: entityId
name: aws.elb.loadBalancer
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -33,6 +35,8 @@ synthesis:
- identifier: aws.Arn
name: aws.elb.loadBalancer
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-awslambdafunction/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ synthesis:
- identifier: entityId
name: aws.lambda.FunctionName
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -40,6 +42,8 @@ synthesis:
- identifier: aws.Arn
name: aws.lambda.FunctionName
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-awsnlb/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ synthesis:
- identifier: entityId
name: aws.nlb.loadBalancer
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -38,6 +40,8 @@ synthesis:
- identifier: aws.Arn
name: aws.nlb.loadBalancer
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-awsrdsdbinstance/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ synthesis:
- identifier: entityId
name: aws.rds.DBInstanceIdentifier
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -29,6 +31,8 @@ synthesis:
- identifier: aws.Arn
name: aws.rds.DBInstanceIdentifier
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-awss3bucket/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ synthesis:
- identifier: entityId
name: aws.s3.BucketName
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -38,6 +40,8 @@ synthesis:
- identifier: aws.Arn
name: aws.s3.BucketName
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-awssqsqueue/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ synthesis:
- identifier: entityId
name: aws.sqs.QueueName
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventSource
value: sqs.amazonaws.com
Expand All @@ -41,6 +43,8 @@ synthesis:
- identifier: aws.Arn
name: aws.sqs.QueueName
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventSource
value: sqs.amazonaws.com
Expand Down
4 changes: 4 additions & 0 deletions entity-types/infra-host/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ synthesis:
- identifier: entityId
name: aws.ec2.InstanceId
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand All @@ -314,6 +316,8 @@ synthesis:
- identifier: aws.Arn
name: aws.ec2.InstanceId
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
Expand Down

0 comments on commit 9e5af61

Please sign in to comment.