MongoDB atlas returns Error-"Atlas cannot assume the specified role"

I want to load data from mongoDB to s3 for that I want to use data federation mongoAtlas app services, for when i am trying to authorise aws iam role for atlas getting above error. Need help with the resolution.

This is an error returned by AWS usually when the connection is mis-configured somehow.

Did you follow the full instructions for setting up the AWS IAM roles? Can you re-try that process and see if its solves the issue?