gpt4 book ai didi

amazon-web-services - CloudFormation Elastic 负载均衡器监听器与监听器证书的循环依赖关系

转载 作者:行者123 更新时间:2023-12-03 07:12:37 25 4
gpt4 key购买 nike

我有一个 cloudformation 模板,它尝试创建应用程序负载均衡器监听器,并且还尝试创建监听器证书。问题是这两个资源相互引用。验证 yaml 配置时出现循环依赖错误...

#APPLICATION LOAD BALANCER LISTENER
ApplicationLoadBalancerListener:
Type: AWS::ElasticLoadBalancingV2::Listener
Properties:
AlpnPolicy:
- String
Certificates:
- !Ref ListenerCertificate
DefaultActions:
- Action
LoadBalancerArn:
Ref: ApplicationLoadBalancer
Port: 443
Protocol: HTTPS
SslPolicy: ELBSecurityPolicy-2016-08

#APPLICATION LOAD BALANCER LISTENER SSL LINK
ListenerCertificate:
Type: AWS::ElasticLoadBalancingV2::ListenerCertificate
Properties:
Certificates:
- !Ref SSLCertificate
ListenerArn:
Ref: ApplicationLoadBalancerListener

最佳答案

证书应该是来自 ACM 的证书的 ARN,AWS::CertificateManager::Certificate,而不是您的 ListenerCertificate

关于amazon-web-services - CloudFormation Elastic 负载均衡器监听器与监听器证书的循环依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70647519/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com