Solve AWS Amplify with existing S3 bucket error for Flutter project

Job ID: 33358690

Budget: $10 – $30 USD

We are working on a flutter project with an existing S3 bucket.
Bucket is already setup and amplify is also already setup, but there is some error coming while we are accessing S3 bucket.

StorageException(message: Something went wrong with your AWS S3 Storage upload file operation, recoverySuggestion: See attached exception for more information and suggestions, underlyingException: com.amazonaws.AmazonClientException: Failed to get credentials from Cognito Identity)

P.S. This is an urgent issue and no trial and error method person required will need person who has done this already and can fix it in 30 mins, it's just small configuration issue.
Related categories: Cloud Computing Flutter Amazon S3 AWS Amplify