- 新しい順
- 投票が多い順
- コメントが多い順
Difficult to tell without error message on AppRunner. How does the image look like (https://github.com/aws-containers/hello-app-runner/blob/main/Dockerfile)
You can probably use CloudMap for Fargate https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html
The most cost effective option may me using Lambda and URL support.
You should consider if you can run this using Lambda which now has built in URL support and scalers to 0.
https://aws.amazon.com/blogs/aws/announcing-aws-lambda-function-urls-built-in-https-endpoints-for-single-function-microservices/
You can even package the function in a container and push to ECR if you want to have the same deployment model https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-lambda-functions-with-container-images.html
Update: After somewhat extensive research, I think I finally found the answer. The app that I have is getting a HTTP timeout and is thus crashing. It does some pretty computationally expensive operations at startup in the app's server which stalls any information getting to the ui. Since the load balancer doesn't see any response to the request in the ui for a certain period of time (AWS doesn't say, maybe 10, 15, 20 seconds), then the load balancer thinks the app is dead and kills it.
Hi, I work for App Runner product team. Can you provide the
serviceARN
so we can look into the error and get back to you?