Hey everyone,
Over the past few days, I’ve been experimenting with App Runner as an alternative to my Heroku app. Some might wonder why I decided to switch. Well, for a few years now, I’ve been running some critical parts of my app on Lambdas, and I’ve been quite satisfied with them. I’ve never encountered any issues. I thought it would make sense to consolidate all my infrastructure in one place and take advantage of direct access to AWS services like X-ray. I was really excited to give App Runner a try. It was introduced two years ago, so I expected it to be quite mature. However, I couldn’t have been more wrong…
Firstly, when I tried to create a service in App Runner, I made a mistake and named the file apprunner.yml instead of apprunner.yaml. After going through the process of naming service, connecting it to the repository, and configuring everything, I had to wait for five minutes, only to receive a “creation failed” error. It took me a while to figure out the issue, but in order to try again, I had to delete the old service and create a new one. It was quite frustrating.
Secondly, once I managed to get the service to the “Created” state, I noticed how slow the deployments were. I started with a basic node/express app, which takes around 30 seconds to deploy on Heroku, but on App Runner, it took roughly 3 to 5 minutes. I thought to myself, maybe I’ll get used to it. Perhaps it will be faster once I dockerize it, or maybe there are some caching options that I can utilize. I decided to give it another chance.
So, I continued working on my app, pushing updates every few minutes, and so far, every build succeeded. But then… I saw a “Rollback Successful” message. I clicked on the deployment logs to investigate, and here’s what I found:
05-31-2023 12:04:04 PM \[AppRunner\] Failed to deploy your application source code.
05-31-2023 12:00:40 PM \[AppRunner\] Starting to build your application source code.
The deployment failed, and there were no logs available to help me debug the issue. There’s an open issue on GitHub that has been around for over a year, but there doesn’t seem to be a solution in sight.
Afterwards, I connected the same repository to Heroku and received feedback that helped me resolve the issue, at least on Heroku’s side. However, App Runner is still failing to deploy.
Rant aside, now I’d like to ask: are any of you currently using App Runner in production? Have you encountered similar issues? Or perhaps you gave up on it due to similar reasons? Is Fargate any better?
Thank you all!