小编Mar*_*cin的帖子

如何为 AWS::ElasticLoadBalancingV2::Listener 设置多个证书

嗨,我在为 ALB 侦听器设置多个证书时遇到问题。这是我的 CF 模板的片段:

  DiscoveryListenerHTTPS:
    Type: AWS::ElasticLoadBalancingV2::Listener
    DependsOn:
      - DiscoveryLoadBalancer
      - DiscoveryLoadBalancerTargetGroup
    Properties:
      Certificates:
       - CertificateArn: !Ref CertificateArn1
       - CertificateArn: !Ref CertificateArn2
Run Code Online (Sandbox Code Playgroud)

和回应是: Up to '1' certificate ARNs can be specified, but '2' were specified (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: TooManyCertificates; Request ID: XXXXXXXXX)

ssl listener amazon-web-services aws-cloudformation

9
推荐指数
3
解决办法
5148
查看次数

logstash 中的链式过滤器

是否可以按顺序使用logstash过滤器?例如,我想将消息解析为 json,然后按字符拆分新创建的字段。

输入 => 过滤器 => 过滤器 => 输出 => 弹性搜索

filter chain logstash

5
推荐指数
2
解决办法
1万
查看次数

为什么Java正则表达式".*[two].*"匹配"[one]"?

当括号中有两个值时为什么会String.matches返回?true[]

System.out.println("[one]".matches("(?i).*" + "[two]" + ".*"));
   //Why does it return true? Shouldn't "[]" be treated as value?
System.out.println("one".matches("(?i).*" + "two" + ".*"));//OK - prints false

System.out.println("[one]".equals("[two]"));//OK - prints false
System.out.println("one".equals("two"));//OK - prints false
Run Code Online (Sandbox Code Playgroud)

java regex string

3
推荐指数
2
解决办法
244
查看次数