Skip to content

Attach EC2 target group to Autoscaling group #53206

Description

@dkfsalt

Description of Issue/Question

There doesn't appear to be a way to associate a "target group" (created via boto_elbv2) with an "auto scaling group" (via "boto_asg"). EC2 supports the ability to do this so that new launched instances are automatically added to the target group and are, therefore, added to the instances for the load balancer.

The ideal use case is:

  1. states.boto_elbv2.create_target_group a new target group (possible)
  2. states.boto_elb.present a load balancer that uses the above target group as the target (not possible)
  3. states.boto_lc a new launch config (possible)
  4. states.boto_asg.present a new asg that associates the above launch config (possible) and the above target group (not possible) and sets the option to "auto add launched instances to target group" (not possible)

Setup

From the documentation...

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

Salt 2019.02

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfirmedSalt engineer has confirmed bug/feature - often including a MCVEExecution-ModuleFeaturenew functionality including changes to functionality and code refactors, etc.Salt-Cloud

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions