AWS App Runner build failing for my Django app

0

Hello, I am new to AWS App Runner and I am trying to deploy my Django app on App Runner but the build keeps failing. I get an error that says "Web ACLs are not available for the selected service "service ARN" because the service does not exist or is in an invalid state for association". I am using eu-west-3 region.

Also, here are the last few lines of the deployment log:

03-24-2024 02:45:00 PM [AppRunner] Successfully pulled your application source code. 03-24-2024 02:45:01 PM [AppRunner] Successfully validate configuration file. 03-24-2024 02:45:02 PM [AppRunner] Starting source code build. 03-24-2024 02:45:51 PM [AppRunner] Failed to build your application source code. Reason: Failed to execute 'build' command.

I followed this tutorial: https://aws.amazon.com/blogs/containers/deploy-and-scale-django-applications-on-aws-app-runner/

What could be the issue? Could it be this Web ACLs problem that is preventing the build from completing?

kwame
已提問 2 個月前檢視次數 406 次
1 個回答
1

Did you try to build and run your Docker container locally? does it work? Build failures typically stem from problems within the application code or its dependencies. Could you please provide the apprunner.yaml file? Make sure to replace the placeholder ARN arn:aws:secretsmanager:eu-west-1:111122223333:secret:my-django-database-secret-kh2vEL with your actual AWS Secrets Manager ARN.

Here's an example of how your YAML file should be structured:

arn:aws:secretsmanager:<REGION>:<ACCOUNT_ID>:secret:my-django-database-secret-kh2vEL

Replace <REGION> with your AWS region (e.g., eu-west-3) and <ACCOUNT_ID> with your AWS account ID.

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南