خطأ 504 Gateway بعد تشغيل مثيل AWS جديد

here is a post you can check that might help you