This error can occur if the #AWS Identity and Access Management (IAM) entity attempting to perform an action on the AWS #Config console doesn't have the necessary #IAM permissions.
Source >>
https://ibmimedia.com/blog/71/solution-to-an-error-has-occurred-with-aws-config