Look at X-Forwarded-Proto for the HTTPS environment variable

Amazons ELB don't use X-HTTPS but instead set an "X-Forwarded-Proto: https" header when forwarding https connections.

It would be great if that header (and its value) could be considered alternatively to X-HTTPS.