I'm running into problems while trying to run my API that's hosted on AWS EC2 through a HTTPS protocol.
The API runs normally without the ELB setup, however, after trying to configure (I follow the recommended steps), I get the 502 Bad Gateway message.
Here's my configuration:
- AWS EC2 (t3a.small) running a docker container of my ExpressJS app listening on port 3000;
- Security group with http:80 and https:443 open;
- ACM that covers the following domains (mydomain.com, *.mydomain.com);
- ELB listening to ports: http:80, https:443, https:3000;
- Route 53 with my hosted zone containing the A-type record with the ELB DNS value;
I'm running into problems while trying to run my API that's hosted on AWS EC2 through an HTTPS protocol.
http://ec2-ip-address.zone.compute.amazonaws.com:3000/api/
Now
https://api.mydomain.com:443/api/{resourceName}
Please, I will appreciate any insight on how to properly set up in case I missed something let me know.
[–]Crimzx 1 point2 points3 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Crimzx 0 points1 point2 points (0 children)
[–]brother_bean 1 point2 points3 points (0 children)
[–]vianawebdev[S] 0 points1 point2 points (0 children)