class Aws::CredentialProviderChain
def assume_role_with_profile(options, profile_name)
def assume_role_with_profile(options, profile_name) region = (options[:config] && options[:config].region) Aws.shared_config.assume_role_credentials_from_config( profile: profile_name, region: region, chain_config: @config ) end