Not able to redirect http to https while using aws nlb behind traefik

I am deploying the traefik in k8s with the below annotaions: nlb "tcp" arn:aws:acm:us-east-1:*:certificate/* "true" "443" "5" "true" "" ""

I want to redirect all the traffic from http to https. Redirection doesnt work and it results in an infinite loop with 301 error.