Strapi v4 deployed to AWS EBS trying to load resource from localhost

Is your default port is 1337 ? if not i’m pretty sure that the admin build has webpack errors. So, check the eb logs if it says webpack built with errors all you need to do is to fix those errors.