Resolve HTTP redirection issues in ECS Fargate or ECS EC2 instances while using a docker single container.
Published:
This article provides step-by-step guidance to resolve HTTP redirection issues when using a Docker single-container deployment with an external load balancer in ECS Fargate or ECS EC2 instances.
Step 1: Adding environment variable
Open the task definition that currently running and add the below environment variable to handle the http redirection and create task in the new revision.
{
"name": "BOLD_SERVICES_REVERSE_PROXY",
"value": "true"
}
Step 2: Update the service with new task definition revision
Select the currently running service, and then click Update.
Update the new task definition in the running ECS service as below
After that click update button at the bottom of the page.