-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoadBalancerV2 target groups: include port and protocol to EC2Instance #1278
Conversation
@@ -159,6 +159,7 @@ def load_load_balancer_v2_target_groups( | |||
MERGE (elbv2)-[r:EXPOSE]->(instance) | |||
ON CREATE SET r.firstseen = timestamp() | |||
SET r.lastupdated = $update_tag | |||
r.port = $PORT, r.protocol = $PROTOCOL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed a comma. Needs to be
SET r.lastupdated = $update_tag,
r.port = $PORT, r.protocol = $PROTOCOL
Also, is the ARN of the target group available? If so, maybe we should include the ARN of the target group as r.target_group_arn
so that it's easily searchable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh also let's remember to update the schema doc
ON CREATE SET r.firstseen = timestamp() | ||
SET r.lastupdated = $update_tag | ||
ON CREATE SET r.firstseen = timestamp(), | ||
r.target_group_arn = $TARGET_GROUP_ARN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for the target_group_arn to change? To be safe, let's move this to the SET clause.
lyft#1278) AWS api exposes a port and protocol per TargetGroup (see https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_TargetGroup.html) Using those values to identify which EC2 instances are exposed by which protocols and ports based on LoadBalancer configuration.
AWS api exposes a port and protocol per TargetGroup (see https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_TargetGroup.html)
Using those values to identify which EC2 instances are exposed by which protocols and ports based on LoadBalancer configuration.