1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
1
You have the option to enable logging to Cloudwatch and / or S3. Check if you have these enabled. Nothing shows up in Build logs tab if Cloudwatch logs are disabled
respondido há 2 anos
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
Hi Syd,
Thanks for the answer. I have however checked CloudWatch logs. Is there any other permissions which could be missing here?
You need to ensure that the Service Role used by CodeBuild has permissions to send logs to Cloudwatch. Codebuild can do it for you if you select the check box. BTW didnt understand what you meant by checked Cloudwatch logs. Does it mean you checked logs but didnt find any entry, or nothing useful in Cloudwatch logs even though it's enabled? Just wanted to mention that if CodeBuild is set to configure sent to Cloudwatch, those logs are visible in Codebuild - Buildlogs tab itself for the subsequent run.
In project settings, Under Logs section. I checked and configure 'Group name' and 'Stream name'
CloudWatch logs - optional Checking this option will upload build output logs to CloudWatch.
Service role permission was checked as well. "Allow AWS CodeBuild to modify this service role so it can be used with this build project"
And when I refer to the policy. This part is defined:-
What puzzled me is, it was working before and stop working since 4 days ago. I compared the latest run to the successful run but nothing changes on configuration part.
I'm not sure if this is relevant. Under "Phase details" on "FINALIZING" phase whilst shown as 'Succeeded' inside context there is an error below
I am not sure what this means.
Policy is correct. The TLS error is related to Cloudwatch logs endpoint. It could be a transient error unless you see it on every build. In which case it's difficult to identify the cause is with the limited info available. Is the test build showing a status of Successful despite the context text in FINALIZING phase? It would mean apart from the logging aspect the build completes.