o-nikolas commented on issue #18549:
URL: https://github.com/apache/airflow/issues/18549#issuecomment-954102099


   Hey folks,
   
   watchtower does an idempotent create for the log group as you can see 
[here.](https://github.com/kislyuk/watchtower/blob/6ee1e54017f024dc2607571afe06c1d44b23da72/watchtower/__init__.py#L12-L17).
 If the log group already exists it will catch that error and ignore it 
silently.
   
   The issue you actually hit is an authentication issue, as seen in your 
exception message:
   
   > botocore.exceptions.ClientError: An error occurred (AccessDeniedException) 
when calling the CreateLogGroup operation: User: 
arn:aws:sts:<redacted>}:assumed-role/airflow-service-account-role/botocore-session-1632755037
 is not authorized to perform: logs:CreateLogGroup on resource: 
arn:aws:logs:eu-central-1:<redacted>:log-group:airflow:log-stream:
   
   The role you're using doesn't have permission for the log group creation. 
It's worth double checking that role has all the required permissions for 
cloudwatch logging (creating groups, streams and uploading records).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to