https listener creation fails in AWS Elastic Beanstalk

0

I have developed and deployed a python application to AWS Elastic Beanstalk that works fine. When I modify the application bundle with the addition of the .ebextensions/https-reencrypt-alb.config file the deployment of the Application fails with the following Error:

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

Contents of https-reencrypt-alb.config as follows...

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

I have a certificate created all ready, but creating a listener on port 443 fails (silently, after reporting - Pending create). I assume this is failing because I have not been able to deploy the version with this https termination file included.

I have successfully deployed two previous, and very similar, applications with https support (in June and August) and they work fine. Has something changed in Elastic Beanstalk/Route 53/Certificate Manager since then that requires a different deployment process?

1개 답변
1
수락된 답변

Hi There

Do you have a secure listener setup in another config file with an SSLCertificateID ARN specified?

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

First, add a secure listener to your load balancer, if you haven't already.

example:

option_settings:
  aws:elb:listener:443:
    SSLCertificateId: arn:aws:acm:us-east-2:1234567890123:certificate/####################################
    ListenerProtocol: HTTPS
    InstancePort: 80
profile pictureAWS
전문가
Matt-B
답변함 2년 전
profile pictureAWS
전문가
Toni_S
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠