I am trying to force HTTPS in my Symfony PHP application. The docs on this topic seem pretty straight-forward:
# config/routes.yaml
secure:
path: /secure
controller: App\Controller\MainController::secure
schemes: [https]
Basically just add schemes: [https] to the route.
But when I do this in my application and deploy (to an AWS EC2 instance using a load balancer) it appears to create a redirect loop.
What might be the issue here?

The docs say:
Which in turn takes you here. Since you can't know the IP address of your load balancer (because AWS), the docs say:
If you follow this steps, and everything else is configured correctly, you should be good to go.