[AWS] elastic beanstalk으로 배포했을 때 502 error 해결

2023. 12. 24. 22:34AWS

- 상황

배포된 url에 들어간다

 

- 에러

502 bad gateway 에러가 난다

 

- 원인

beanstalk이 기본적으로 포트가 5000번이기 때문이다.

 

- 해결

아래와 같이 PORT 8080을 추가해준다.

 

 

Reference


https://stackoverflow.com/questions/54612962/502-bad-gateway-elastic-beanstalk-spring-boot