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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠