Skip to content

retreive instances via EC2 DescribeInstances #28

Closed
@trjstewart

Description

@trjstewart

Is your feature request related to a problem? Please describe.
Currently the configuration options only allow for a single specific autoscaling group name to be specified per upstream with no use of wildcards. During our deployment process we blue/green autoscaling groups using Terraform which results in groups with names like nginx-regional-ingress-<unique_id>.

Describe the solution you'd like
Similar to the implementation in PR #6 I propose we replace the functionality of svcAutoscaling.DescribeAutoScalingGroups with svcEC2.DescribeInstances and allow the passing of an array of values to filter for on the aws:autoscaling:groupName tag (filtering supports wildcards). This will also satisfy #3.

region: self
api_endpoint: http://127.0.0.1/api
sync_interval_in_seconds: 1
cloud_provider: AWS
upstreams:
  - name: nginx-poc-api
    autoscaling_group: nginx-poc-*
    port: 3000
    kind: http
  - name: nginx-poc-api-v2
    autoscaling_group:
      - nginx-poc-api-one
      - nginx-poc-api-two
      - nginx-poc-api-*
    port: 3000
    kind: http

Describe alternatives you've considered
I am not aware of any other way to achieve the same functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementPull requests for new features/feature enhancementsproposalAn issue that proposes a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions