AWS application load balancer listener rule paths

[亡魂溺海] 提交于 2020-06-14 06:36:25

问题


Configuring an application load balancer.

I have 3 separate target groups and about 30 different paths I'd like to filter on.

When filling out path pattern what are the possible values? Given it's called "pattern" gives the impression it can accept regex but validation is preventing this.

Is it possible to match multiple paths to a target group or will I have to create a separate rule for each path?

I realise using an additional level in my paths (ie /group1/path, /group2/path) would simplify this but looking at if there's an easy solution for current architecture I've inherited.


回答1:


I realise this is 2 months old but I have been looking at this today and I found the existing answer not very useful.

There doesn't appear to be support for full usage of regex, instead only the * and ? characters are used for regex matching. You can't use any of the characters outside of the supported range as shown below:

  • A-Z, a-z, 0-9
  • _ - . $ / ~ " ' @ : +
  • & (using amp;)
  • * (matches 0 or more characters)
  • ? (matches exactly 1 character)

http://docs.aws.amazon.com/cli/latest/reference/elbv2/create-rule.html#options

From my experience you are forced to create separate rules for each path-pattern if you want to do more complicated matching.


Edit:

As part of some new changes to ALBs you can now have 75 rules per ALB. You can also route by host header which is cool.

As part of today’s launch we are raising the maximum number of rules per Application Load Balancer from 10 to 75, and also introducing a new rule editor.



来源:https://stackoverflow.com/questions/39658775/aws-application-load-balancer-listener-rule-paths

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!