Skip to content

Commit

Permalink
fix: Remove capturing group in arn regex (#1943)
Browse files Browse the repository at this point in the history
Co-authored-by: Otávio Carvalho <[email protected]>
  • Loading branch information
Sanjalee-NewRelic and otaviocarvalho authored Feb 24, 2025
1 parent b28b65e commit d7eb2c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ relationships:
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
regex: "^arn:aws:mq:([^:]*):([^:]*):broker/([^:]*)"
regex: "^arn:aws:mq:[^:]*:[^:]*:broker/[^:]*"
present: true
relationship:
expires: P75M
Expand Down
2 changes: 1 addition & 1 deletion relationships/synthesis/EXT-SERVICE-to-KAFKATOPIC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ relationships:
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
regex: "^arn:aws:kafka:([^:]*):([^:]*):cluster/([^:]*)"
regex: "^arn:aws:kafka:[^:]*:[^:]*:cluster/[^:]*"
present: true
relationship:
expires: P75M
Expand Down
2 changes: 1 addition & 1 deletion relationships/synthesis/EXT-SERVICE-to-MEMCACHED.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ relationships:
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
regex: "^arn:aws:elasticache:([^:]*):([^:]*):cluster/([^:]*)"
regex: "^arn:aws:elasticache:[^:]*:[^:]*:cluster/[^:]*"
present: true
relationship:
expires: P75M
Expand Down
2 changes: 1 addition & 1 deletion relationships/synthesis/EXT-SERVICE-to-REDIS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ relationships:
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
regex: "arn:aws:elasticache:([^:]*):([^:]*):cluster:([^:]*)"
regex: "arn:aws:elasticache:[^:]*:[^:]*:cluster:[^:]*"
relationship:
expires: P75M
relationshipType: CALLS
Expand Down

0 comments on commit d7eb2c4

Please sign in to comment.