We have magento running on AWS Fargate behind a load balancer. It works great when it is not scaled(i.e only one task is running), however when it scales to 2 or more tasks I am not able to login as a customer or administrator and we aren't getting any login errors, it just redirects to itself. I can only login successfully when only one task is running. We're running magento 2.3.2 on AWS Fargate behind a load balancer. Any ideas why this might be happening?


You should use Amazon Elasticache service to store user session in the case. Also please pay attention that you also need RDS and EFS services for container based Magento setup

See more details here https://aws.amazon.com/ru/quickstart/architecture/magento/

| improve this answer | |
  • Ok thanks, I'll test Amazon's Elasticache service and let you know the result. We are already using RDS however EFS isn't currently supported by fargate. – Andrelle Oct 7 '19 at 2:20
  • I was able to test with Elasticache, it works perfectly thanks – Andrelle Oct 9 '19 at 0:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.