504 Gateway-Fehler nach dem Start einer neuen AWS-Instanz

here is a post you can check that might help you