I have an EC2 running pgadmin.
There's a target group pointing to it on port 80.
The TG is listening on port 443 but HTTP so it can redirect to the EC2 on port 80. (I previously had it 443 and HTTPs but read online that SSL termination should be here)
There's an ELB listening on 443 and pointing to the TG.
If I go to the URL of the ELB I can successfully access pgadmin, although obviously the browser shows a certificate error because the URL isn't the one in the ACM cert associated with the ELB.
I have R53 domain with an alias to the ELB, which matches the ACM cert, but when I go to this URL I get 'too many redirects' in the browser.
Not sure where the config could be wrong, especially as it works from the ELB just not the domain.