Skip to main content

load_aws_config

Function load_aws_config 

Source
pub fn load_aws_config(path: &Path) -> Result<Arc<ProfileMap>, ProviderError>
Expand description

Load a profile map from ~/.aws/config (or any user-supplied INI-shaped file).

Per spec § 3.1: for each [profile <name>] section we extract sso_account_id, role_arn, and region. When the section has none, we follow source_profile = ... up to AWS_CONFIG_MAX_CHAIN_HOPS hops.

§Errors

Returns ProviderError on I/O failure, size-cap breach, INI parse, or chain-cycle detection.