Abi*_*mar 6 amazon-web-services aws-cloudformation
farwardtotargetgroup:
Type: AWS::ElasticLoadBalancingV2::Listener
Properties:
Certificates:
- CertificateArn: !Ref cert
DefaultActions:
- TargetGroupArn: !Ref target-group
Type: forward
LoadBalancerArn: !Ref nlb
Port: 443
Protocol: TLS
redirectto443:
Type: AWS::ElasticLoadBalancingV2::Listener
Properties:
DefaultActions:
- RedirectConfig:
Port: 443
StatusCode: HTTP_301
Type: redirect
LoadBalancerArn: !Ref nlb
Port: 80
Protocol: TLS
Run Code Online (Sandbox Code Playgroud)
当我执行模板时,我得到:
操作类型“重定向”对于网络负载均衡器无效(服务:AmazonElasticLoadBalancingV2;状态代码:400;错误代码:InvalidLoadBalancerAction;
| 归档时间: |
|
| 查看次数: |
4360 次 |
| 最近记录: |