title: Is there a way to get temporary role based credentials using the AWS C++ SDK?
body: <p>ProfileConfigFileAWSCredentialsProvider used in DefaultAWSCredentialsProviderChain simply ignores roles in <code>~/.aws/config</code> and <code>~/.aws/credentials</code>. STSProfileCredentialsProvider appears as though it is meant to be used for this, but 1) it's not used in DefaultAWSCredentialsProviderChain so you have to explicitly use it, and 2) it only reads <code>config</code>. #2 means that if, for example, your role based profile specifies a source profile, and the source profile's credentials are in <code>credentials</code> then STSProfileCredentialsProvider will fail to find the source profile's credentials and then won't be able to get the role's temporary credentials.</p>