How to solve AWS was not able to validate the provided access credentials

Comprehensive method of fixing  AWS was not able to validate the provided access credentials

Solution to an error has occurred with AWS Config

Easy way to fix an error has occurred with AWS Config.