Skip to content

AppRunner stopped to create log files

0

Hi there,

we have several AppRunners set up and running for a long period with multiple deploys per week. Beginning on the 20 of June, at least two AppRunners stopped to create log files in cloud watch and we didn't manage to get the AppRunners recreate new log files.

Actions taken:

  • redeploy AppRunner
  • Pause / Resume AppRunner
  • clear list of log files
  • delete log group for AppRunner
  • manually recreate log group for AppRunner

Currently only a new AppRunner instance was able to create new log files

Is there anything we could do? Also there is the risk of not getting informed in case of errors and it is not obvious, that no log files are created, if we are not checking it ourselves.

Best regards, Michael Berth

2 Answers
0

Hello,

Could you ensure the IAM role associated with your AppRunner service has the necessary permissions to write logs to CloudWatch. The policy should include permissions like logs:CreateLogGroup, logs:CreateLogStream, and logs:PutLogEvents. Look at the AppRunner service events and CloudWatch logs for any errors or warnings that might indicate why logs are not being created. Since only new AppRunner instances are creating log files, consider recreating the problematic AppRunner services from scratch. This might help in resetting any misconfigurations.

EXPERT
answered a year ago
EXPERT
reviewed a year ago
0

So the IAM Role has all the necessary permissions and also there are no errors in the service events logs. I can't explain but today in the morning, all the missing log files appeared.

What's interesting is, that also the missing logs appeared in the log group, which I completely deleted and recreated yesterday.

So for now the problem is gone.

Thanks for your response

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.