aws icon indicating copy to clipboard operation
aws copied to clipboard

Add support for ELBv2

Open eherot opened this issue 9 years ago • 7 comments

eherot avatar Aug 11 '16 21:08 eherot

We're looking forward to a PR that supports the new appliation load balancers, but it doesn't look like the api even supports this yet. The docs still reference the old API rev. We'll have to wait and see when Amazon releases their gem with updated support

tas50 avatar Aug 11 '16 22:08 tas50

Perhaps I'm misinterpreting the response but it definitely looks like the new version of aws-sdk supports ELBv2:

This target group is one that I made through the console:

$ pry -raws-sdk
[1] pry(main)> elbv2 = Aws::ElasticLoadBalancingV2::Client.new
=> #<Aws::ElasticLoadBalancingV2::Client>
[2] pry(main)> elbv2.describe_target_groups
=> #<struct Aws::ElasticLoadBalancingV2::Types::DescribeTargetGroupsOutput
 target_groups=
  [#<struct Aws::ElasticLoadBalancingV2::Types::TargetGroup
    target_group_arn="arn:aws:elasticloadbalancing:us-east-1:REDACTED:targetgroup/test-target-group/REDACTED",
    target_group_name="test-target-group",
    protocol="HTTP",
    port=80,
    vpc_id="vpc-REDACTED",
    health_check_protocol="HTTP",
    health_check_port="traffic-port",
    health_check_interval_seconds=30,
    health_check_timeout_seconds=10,
    healthy_threshold_count=10,
    unhealthy_threshold_count=2,
    health_check_path="/",
    matcher=#<struct Aws::ElasticLoadBalancingV2::Types::Matcher http_code="200">,
    load_balancer_arns=
     ["arn:aws:elasticloadbalancing:us-east-1:REDACTED:loadbalancer/app/test-app-lb/REDACTED"]>],
 next_marker=nil>

I haven't tried making any modifications yet but I have no reason to believe they won't work.

Unfortunately of course there are no ruby docs (yet?) for the new SDK but you can sort of piece your way through the commands by reading the model JSON.

PS. I'm actually working on a PR right now so if I can manage to get it done in a reasonable amount of time I'll try to address my own issue. ;-)

eherot avatar Aug 12 '16 01:08 eherot

@eherot did you happen to get anywhere with your PR? Thanks!

iennae avatar Nov 07 '16 23:11 iennae

@iennae I got some work done. Here's the WIP PR if you want to try to contribute to it in the mean time: #265

eherot avatar Nov 08 '16 01:11 eherot

@eherot Do you have more updates to your PR?

bruce-davis avatar Feb 10 '17 20:02 bruce-davis

Negative. Sorry!

eherot avatar Feb 13 '17 17:02 eherot

This would be very helpful for instances managed by OpsWorks since it doesn't support ALB (ELB v2) yet. Looking forward to this feature.

nickpetrovic avatar Feb 16 '17 17:02 nickpetrovic

Any update on when ALB's will be supported?

tmcneill-mbo avatar May 16 '17 19:05 tmcneill-mbo