source_profile - AWS SDKs and Tools


Specifies another profile whose credentials are used to assume the role specified by this role_arn setting in this profile.


Default value: None.

Valid values: A text string that consists of the name of a profile defined in the config and credentials files. You must also specify a value for role_arn in the current profile.


This setting is an alternative to credential_source. You can't specify both source_profile and credential_source in the same profile.

Ways to set this value

Location Supported Example
config file Yes
source_profile = user-who-can-assume-roleA role_arn = arn-of-roleA
credentials file -
Environment variable -
AWS CLI parameter -

Compatibility with AWS SDKS and tools