'aws-runas- 3.3.1 validation issue

I am trying to run the aws-runas to use AWS STS to do some development work using a specific user role. I already have access the required userrole access to the AWS account.

the command executed to run the aws sts

aws-runas.exe <profile_name>

[default]
output = json
region = <example1>
saml_auth_url = <url>
saml_username = <email>
saml_provider = <provider>
federated_username = <username>
credentials_duration = 8h

[profile <name>]
role_arn = arn:aws:iam::<account_id>:role/<role_name>
source_profile = <profile_name>

This is how I formed the config file which is located at C:\Users<NAME>.aws

Debug output is as the follows.

Does anyone have a clue of what's wrong in here ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source