Handle Multiple Target Groups per LB
The Target Group auto-discovery in the
akinaka_update.update_asg module works for an ALB with a single Target Group attachment, but would fail in a pretty terrific way where multiple Target Groups are attached, which is a likely scenario for ALBs.
- Fix it so
--target-groupcan be given to
update asg, to narrow the scope for the auto-discovery
- Ensure that when
--target-groupis given, auto-discovery is not attempted on a random (first found) Target Group