Datasync Task: ARN account () must match authenticated user

Hello guys,

resource "aws_datasync_task" "example" {
  destination_location_arn = data.aws_s3_bucket.example.arn
  name   = "example"
  source_location_arn  = data.aws_efs_file_system.example.arn
}
│ Error: error creating DataSync Task: InvalidRequestException: Invalid parameter: ARN account () must match authenticated user.
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "e***a"
│   },
│   ErrorCode: "InvalidParameter",
│   Message_: "Invalid parameter: ARN account () must match authenticated user."
│ }

How can I understand the error and fix it? Thanks!

i think we need a valid profile or iam role but not sure. have you resolved it? thanks!