Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)

I'm getting my Amazon generated SSL terminated on ALB that is put in front of my application that runs on Elastic Beanstalk. Ans the file content is as below:

option_settings:

    aws:elbv2:listener:443:

        DefaultProcess: https

        ListenerEnabled: 'true'

        Protocol: HTTPS

        SSLCertificateArns: arn:aws:acm:us-east-1:#############:certificate/####################################

    aws:elasticbeanstalk:environment:process:https:

        Port: '443'

        Protocol: HTTPS

Now when I try to access my application I get a "502 Bad Gateway" page instead of my web application.

Can anyone suggest to me where I'm missing out?

1 Answer

0 votes
by (12.4k points)

You need to specify ALB to interact with the EC2 over HTTP on port 80, so in your code change the last two line with the below:

Port: '80'

Protocol: HTTP

Do checkout AWS Training to learn more about AWS.

For more details on Elastic Beanstalk, you can check out the video tutorial below.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...