在AWS Elastic Beanstalk中创建监听器失败

0

【以下的问题经过翻译处理】 我已经开发并部署了一个Python应用程序到AWS Elastic Beanstalk,它运行得很好。当我修改应用程序包并添加.ebextensions/https-reencrypt-alb.config文件时,应用程序的部署会因以下错误而失败:

"Unable to deploy application version: Configuration validation exception: You must specify an SSL certificate to configure a listener to use HTTPS.""

https-reencrypt-alb.config的内容如下:

aws:elbv2:listener:443:
    DefaultProcess:https
    ListenerEnabled:'true'
    Protocol:HTTPS
aws:elasticbeanstalk:environment:process:https:
    Port:'443'
    Protocol:HTTPS

我已经创建了一个证书,但在端口443上创建监听器失败(在Pending create后静默失败)。 我已成功部署了两个以前非常相似的应用程序,并支持https,它们工作得很好。 Elastic Beanstalk / Route 53 / Certificate Manager 自那以来是否有任何变化,需要不同的部署过程?

1 Antwort
0

【以下的回答经过翻译处理】 你在另一个配置文件中设置了带有一个SSLCertificateID ARN的安全监听器吗?

参考 https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-endtoend.html

首先,如果你还没有,在你的负载均衡器中添加一个安全监听器

例子:

option_settings:
  aws:elb:listener:443:
    SSLCertificateId: arn:aws:acm:us-east-2:1234567890123:certificate/####################################
    ListenerProtocol: HTTPS
    InstancePort: 80

profile picture
EXPERTE
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen