74 questions
-1
votes
0
answers
71
views
AWS App Runner: Deployment passes health checks but fails during traffic routing
I’m running an AWS App Runner service that has been working for months. Recently, whenever I deploy a new ECR image to this existing App Runner service, the deployment passes health checks but fails ...
2
votes
1
answer
140
views
App Runner connected with NAT Gateway won't use a static IP
I would like to attach an elastic IP to an App runner instance.
By following the AWS instructions, I first configured the VPC:
VPC
Created a new VPC with a NAT gateway enabled on both private subnets ...
1
vote
0
answers
96
views
App Runner cpu and memory utilization high just health checks hitting application
I am running a handful of free tier spring boot web apps and web services on App Runner. They randomly started maxing out CPU and Memory recently. The only traffic hitting them is a health check from ...
0
votes
1
answer
107
views
Dockerize .NET 8 Web API Application with Kestrel on AWS App Runner – Port Binding Issue
I'm trying to deploy a .NET 8 Web API application to AWS App Runner using Docker. I've successfully built the Docker image and deployed it, but I'm running into an issue with Kestrel binding to the ...
0
votes
0
answers
183
views
github hook to write a configuration file to the repository
I have a github repository which holds a node ts express server.
when I commit to staging branch there is a webhook between github and aws apprunner that auto deploys to my staging area, and same when ...
3
votes
1
answer
293
views
Sending PHP application logs to AWS App Runner container application log (stdout, stderr)
I have a container running in App Runner with a PHP application on it. It has no outbound internet access nor Endpoint to log directly to CloudWatch and so want to utilise the application logs ...
0
votes
1
answer
97
views
NestJS on AWS AppRunner: Health check failed on protocol `TCP` [Port: '3003']. Check your configured port number
I'm trying to deploy a NestJS app to AWS AppRunner for the first time. I'm stuck getting health failures. I've added lots of detail here, please let me know what I've setup wrong.
03-11-2025 07:25:31 ...
0
votes
0
answers
115
views
Health check failed on protocol TCP with AWS AppRunner
I am currently trying to deploy a FastAPI endpoint with AWS AppRunner, using a ECR (container) sourcen, and I'm being returned this error when deploying :
[AppRunner] Performing health check on ...
2
votes
0
answers
176
views
Issues when importing modules on AWS AppRunner (Python 3.11)
I'm relatively new to AWS AppRunner, and I'm trying to deploy a simple FastAPI endpoint to perform some tests. Here is the main.py file :
from fastapi import FastAPI
import uvicorn
from pydantic ...
0
votes
1
answer
321
views
Why is gunicorn not being added to path in an AWS App Runner Flask App?
I receive the following error:
Invalid start command. Update the start command you provided during
the App Runner service configuration and re-try. -
CannotStartContainerError: ...
0
votes
0
answers
70
views
tsc not found in Docker using AWS App Runner
So I have searched everywhere over the past 3 days to figure out why my apprunner.yaml file for AWS App Runner is erroring with tsc: command not found
I am attempting to run 2 commands to compile my ...
1
vote
1
answer
780
views
AWS AppRunner not using .env var in Build Phase - Next.JS
I am trying to migrate from Elastic Beanstalk to AWS App Runner, but AWS App Runner does not seem to consider the environment variable during it's build phase.
Troubleshooting:
npm run build (next ...
1
vote
1
answer
307
views
Unable to update AWS AppRunner VPC connector via CDK
I have CDK project where I'm creating AppRunner service, and that app is trying to connect with RDS instance, so everything is in private VPC. AppRunner service I need VPC connector to be in same ...
2
votes
2
answers
288
views
in AWS how can I use AppRunner and have no running instances till there is work that need to be done
I have an application in AWS that uses AppRunner using the example provided by AWS. i was wondering if there is a way to not pay for the compute running till a task is needed.
I followed this one: ...
1
vote
1
answer
163
views
Path based routing for AppRunner
I am trying to do a simple POC with app-runner. Lets assume we have simple microservices as part of our application.
Say
book-service
user-service.
Both are running fine in app-runner. This app-...
0
votes
1
answer
414
views
Accessing Private Service in AppRunner
I have a private service, say, employee-service running in AppRunner which is supposed to be accessible only within my VPC.
AppRunner generates a private endpoint https://bf8dsd7yud.myregion....
2
votes
0
answers
331
views
AWS AppRunner with Python 3.11.x failing health check when same config with Python 3.8.16 passes
I've been trying to deploy a django web app on AWS AppRunner. I followed an AWS tutorial here which works to deploy an app running on python 3.8.16. I tried to follow the same procedure but use ...
0
votes
0
answers
330
views
App Runner fails to complete health check for FastAPI app
I'm attempting to deploy a FastAPI app to App Runner via a deployed Docker image on ECR. It works fine when running a local Docker container (on 0.0.0.0:8080), but fails to deploy on App Runner ...
0
votes
1
answer
140
views
aws app running django static s3 url missing colon wrong url
this is my first post and i was to highlight a problenm that i've struggled with for a whole day.
While configuring my django project by recovering the static files from an s3 bucket i've ended up ...
0
votes
1
answer
555
views
Flask app running on AWS App Runner returns 502 Bad Gateway
I have a Flask application running in AWS App Runner with Gunicorn. It was running fine but I added a new feature which includes an API that calls to different endpoints and takes around 2-3 minutes ...
3
votes
0
answers
129
views
How to increase docker disk space for apprunner aws?
I'm running my application on aws apprunner. With 2vCPU and 4Gib memory. It runs successfully..but after some time...i get error.
Failed to update prerender cache for [
Error
: ENOSPC: no ...
1
vote
1
answer
543
views
Amazon AWS App Runner - Can't Run Multiple Commands Under "Build command" Config?
I have the following in my package.json file:
"scripts": {
"migrate": "knex migrate:latest"
},
Running npm run migrate works fine on my local machine. When I try to ...
0
votes
0
answers
79
views
AWSApprunner not able to send email from django
When I try to send and email from django running on AWSAppRunner instance, the screen stays loading for a while and then it turns all white. If I open my debugger, I see a 502 network error:
Origin ...
0
votes
1
answer
669
views
Access a single key from AWS Secret in apprunner.yaml
I am trying to deploy to apprunner via apprunner.yaml
I have stored two key value pairs in single AWS secret.
ARN: xxxx
Under this, there are key1:value1 and key2:value
How can access these keys as ...
0
votes
1
answer
460
views
exec /sbin/tini: exec format error running Meilisearch on AWS App Runner
I am trying to run the docker image getmeili/meilisearch:latest on AWS App Runner, however getting PM exec /sbin/tini: exec format error.
Running the same image on AWS Container Service works fine. I ...
0
votes
1
answer
300
views
AWS App runner build fail: pkg-config not found when building wheel for pycairo in django project
I am trying to deploy a django project to AWS App runner and it uses xhtml2pdf which needs pycairo in its dependency. It works locally I believe because I am running ubuntu, which is labeled this as &...
1
vote
0
answers
435
views
How can I have one Dockerfile, & deploy to many environments, where each container needs a llarge number of runtime variables set unique to each env?
For my project, I have a Dockerfile to build a docker image that needs to be deployed to four environments.
dev, test, staging, prod (or even more: dev-poc, ...)
Deployed in each environemnt, the ...
0
votes
1
answer
352
views
AWS App Runner and Django - deterministic=True requires SQLite 3.8.3 or higher
I'm using AWS App Runner to deploy a django web app, following this guide Deploy and scale Django applications on AWS App Runner. I have no problems deploying, but when I access a page, I'm getting ...
1
vote
1
answer
557
views
Communication between AWS App Runner & EC2 instance
I've read about this subject in a couple of questions, but I haven't found the solution yet. So, I'm reasking almost the same question, as many others have done before:
I have a Django app deployed on ...
1
vote
2
answers
1k
views
AWS AppRunner with outgoing traffic to VPC cannot connect to AWS SES
In my current project, I am using AWS AppRunner to expose an HTTP RESTful API (dockerized Python with FastAPI). The AppRunner uses AWS RDS PostgreSQL database, AWS S3, and AWS SES, to send some emails....
0
votes
1
answer
281
views
Fastapi with jinja rendered image does not display image inside container run
from routers import routers_main
app = FastAPI()
#Mount the static files directory
app.mount("/static", StaticFiles(directory="static"), name="static")
app....
0
votes
1
answer
826
views
504 Gateway timeout in AWS App runner sometimes
I installed laravel 10 project at AWS App Runner and connect with github Repo.
I use this laravel as backend api.
Sometimes after deployment, api endpoint returns 504 gateway timeout.
I should click ...
0
votes
1
answer
604
views
How to update the image uri of apprunner usinbg aws cli?
I was trying to up[date the image uri of source in aws apprunner using below command.
aws apprunner update-service --service-arn arn:aws:apprunner:us-east-1:*:service/next-js/* --source-...
0
votes
1
answer
296
views
AWS Fargate can't run ENV specific build?
I had Next-Js application which I was containerizing and deploying it in AWS Fargate.
Below is my dockerfile
#Base Image
FROM node:18-alpine
ARG ENV=$ENV
RUN mkdir -p /usr/app/
WORKDIR /usr/app/
COPY ....
2
votes
0
answers
2k
views
How to configure AWS App Runner environment variables, IAM Instance Role not working
I'm trying to configure the environment variables in my AWS App Runner service, the variables I need is a secret from the Secrets Manager. My AWS App Runner does not have access to read secrets from ...
0
votes
1
answer
1k
views
how to configuring certificate validation in amazon app runner
When I tried to link my app in App Runner to my route 53 domain got these two steps:
Configure certificate validation (has two records names and values)
Configure DNS target (has on record and one ...
1
vote
0
answers
970
views
How to integrate AWS App Runner with Cognito
We have containerised applications which we want to host using AWS App Runner. At the same time we want to integrate these applications using AWS Cognito. Like API Gateway authorizer is there any ...
2
votes
0
answers
364
views
Python AWS Apprunner Service Failing Health Check
New to Apprunner and trying to get a vanilla Python application to deploy successfully but continuing to fail the TCP Health Checks. The following is some relevant portions of the service and ...
1
vote
0
answers
548
views
Connecting web and api application inside app runner inside VPC
My architecture is the following:
Web app that a user can connect via the internet and that connects to an API that retrieves the data for the application;
API that receives the request from the web ...
0
votes
1
answer
1k
views
RedisTimeoutException when trying to connect to AWS ElasticCache Redis from App Runner
So we have an C# Web API project that connects to an AWS ElasticCache. It is an Redis cluster with just one node to test.
My connection string looks like this:
{NODE-ENDPOINT}:6379,ssl=True,...
0
votes
1
answer
583
views
Eureka Discovery Server not registering client
We have few microservices using Eureka discovery server. In local, everything works fine but when we deploy it on AWS App Runner, it is not registering any of the microservices. Any suggestions what ...
0
votes
2
answers
371
views
Route 53 domain only works when prefixed with http(s)://
I have an application that runs fine in AWS App Runner and can be found here: https://iyarles.net
However, it's not accessible via the naked domain name iyarles.net.
Clarification comment: If I goto ...
1
vote
2
answers
1k
views
How to enforce HTTPS in my AWS APP RUNNER service even visitors enter HTTP?
I have successfully launched AWS APP RUNNER for a NEXT.JS service, and associated with a CUSTOM domain example.com, everything work very fine with https://example.com, however when visitor enter http:/...
2
votes
1
answer
1k
views
How to pass health check tests on AWS App Runner while deploying Python Bottle server?
I suppose this is a pretty dumb questions but I'm really poor at devops.
I have a small Python programming project which I need to deploy on the web. It's not a real app, just a small script which I ...
2
votes
0
answers
161
views
AWS AppRunner Breaks When Using Custom Instance Role
When launching my container with AppRunner & the default instance role (AWS's built in role), my app immediately fails when it tries to talk to SecretsManager.
This is expected, because the ...
3
votes
1
answer
3k
views
How to access the Internet from an AWS App Runner service that is added to a VPC?
The question is the same as this one but has screenshots of AWS resources' configurations.
Situation:
A backend is hosted as an App Runner service.
The backend needs to communicate with a private RDS ...
2
votes
1
answer
1k
views
In AWS App Runner, how does one roll back to old revision
What are the ways how one can roll back the App Runner service to the previous revision?
We use a simple GitHub Actions workflow to build and upload a new docker image to the ECR registry.
How can I ...
3
votes
2
answers
3k
views
AWS App Runner health check fails even though appropriate port is exposed
I'm trying to deploy my application to AWS App Runner and even though everything seems okay it still fails to deploy because the health check fails. I'm trying to deploy from a source code repository ...
5
votes
1
answer
803
views
After jibBuildTar, what command to use to load to AWS ECR?
Is there an AWS CLI command to simply load my image tar to AWS? (I do not have docker on my computer at all nor do I want to increase the image size of our CD pipeline as I prefer to keep it very ...
4
votes
0
answers
1k
views
Can't update AWS App Runner after creation
The app runner is successfully created and works fine, but any attempt to change the configuration gets an error. It seems that the healthcheck does not work, although after creation everything works ...