Description
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.