I am looking at this guide for AWS API Gateway Stage Variables in HTTP Urls. It shows all the different ways we can set up different URLs for different stages, but there doesn't seem to be a way to provide the protocol as a stage variable (http:// vs https://). If I try to add it in the endpoint in AWS API Gateway it doesn't let me.
I saw this comment asking the same question, but for some reason there was no answer. I couldn't find anyone else trying to do the same thing anywhere else online, which is odd because I would assume a lot of people would have HTTP for their dev environment but HTTPS for their live environment.
Does anyone know how I can use different protocols (http vs https) for different stages in my API endpoint?