Trying redirect all http requests to HTTPS.
I have the redirect rules on my web.conf, but I get a too many redirect errors.
Found out I need to set up my Elasticbeanstalk to run a "container_command" to run a script. I got as far as this picture.
Ran it in several yam structure checkers and they all pass it.
[2017-02-13T21:40:40.129Z] INFO [1090] : Loading manifest from bucket 'elasticbeanstalk-us-west-2-943111687699' using computed S3 key 'resources/environments/e-ecbvzu2fms/_runtime/versions/manifest_000000000000'.
[2017-02-13T21:40:40.273Z] INFO [1090] : Updated manifest cache: deployment ID 90 and serial 90.
[2017-02-13T21:40:40.273Z] DEBUG [1090] : Loaded definition of Command CMD-AppDeploy.
[2017-02-13T21:40:40.274Z] INFO [1090] : Executing Application update
[2017-02-13T21:40:40.274Z] INFO [1090] : Executing command: CMD-AppDeploy...
[2017-02-13T21:40:40.274Z] INFO [1090] : Executing command CMD-AppDeploy activities...
[2017-02-13T21:40:40.274Z] DEBUG [1090] : Setting environment variables..
[2017-02-13T21:40:40.274Z] INFO [1090] : Running AddonsBefore for command CMD-AppDeploy...
[2017-02-13T21:40:40.274Z] DEBUG [1090] : Running stages of Command CMD-AppDeploy from stage 0 to stage 1...
[2017-02-13T21:40:40.274Z] INFO [1090] : Running stage 0 of command CMD-AppDeploy...
[2017-02-13T21:40:40.274Z] INFO [1090] : Running leader election...
[2017-02-13T21:40:40.522Z] INFO [1090] : Instance is Leader.
[2017-02-13T21:40:40.522Z] DEBUG [1090] : Loaded 6 actions for stage 0.
[2017-02-13T21:40:40.522Z] INFO [1090] : Running 1 of 6 actions: InfraWriteConfig...
[2017-02-13T21:40:40.528Z] INFO [1090] : Running 2 of 6 actions: DownloadSourceBundle...
[2017-02-13T21:40:44.724Z] INFO [1090] : Running 3 of 6 actions: EbExtensionPreBuild...
[2017-02-13T21:40:45.102Z] INFO [1090] : Running 4 of 6 actions: AppDeployPreHook...
[2017-02-13T21:41:01.347Z] INFO [1090] : Running 5 of 6 actions: EbExtensionPostBuild...
[2017-02-13T21:41:02.390Z] INFO [1090] : Running 6 of 6 actions: InfraCleanEbextension...
[2017-02-13T21:41:02.392Z] INFO [1090] : Running stage 1 of command CMD-AppDeploy...
[2017-02-13T21:41:02.392Z] DEBUG [1090] : Loaded 2 actions for stage 1.
[2017-02-13T21:41:02.392Z] INFO [1090] : Running 1 of 2 actions: AppDeployEnactHook...
[2017-02-13T21:41:21.024Z] INFO [1090] : Running 2 of 2 actions: AppDeployPostHook...
[2017-02-13T21:41:21.613Z] INFO [1090] : Running AddonsAfter for command CMD-AppDeploy...
[2017-02-13T21:41:22.088Z] INFO [1090] : Command CMD-AppDeploy succeeded!