I received a similar error and I use AWS Amplify. I added the AmplifySSRLoggingRole IAM role to Amplify -> App Settings -> IAM Roles -> Service role, and it worked.
AmplifySSRLoggingRole