class
Amazonite::Core::IniParser
- Amazonite::Core::IniParser
- Reference
- Object
Overview
Resolves the AWS profile to use and reads credentials/region for it
from ~/.aws/credentials and ~/.aws/config (or the given filepaths),
matching the standard AWS CLI/SDK config file behavior.
Defined in:
core/ini_parser.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
-
#[](key)
Looks up one of
"access_key_id","secret_access_key", or"region"for the resolved profile. - #access_key_id
- #config_filepath : String?
- #credentials_filepath : String?
- #profile : String?
- #region
- #role_arn : String | Nil
- #secret_access_key
- #session_token
- #source_profile : String | Nil
- #sso_account_id : String | Nil
- #sso_region : String | Nil
- #sso_role_name : String | Nil
- #sso_session : String | Nil
-
#sso_session_config_value(session_name : String, key : String) : String | Nil
looks up a key from a
[sso-session <session_name>]section, distinct from the[profile <name>]sections#config_valuesearches - #sso_start_url : String | Nil
Constructor Detail
def self.new(profile : String | Nil = nil, env : Fetcher = EnvFetcher.new, credentials_filepath : String | Nil = nil, config_filepath : String | Nil = nil)
#
Instance Method Detail
def [](key)
#
Looks up one of "access_key_id", "secret_access_key", or
"region" for the resolved profile.
def sso_session_config_value(session_name : String, key : String) : String | Nil
#
looks up a key from a [sso-session <session_name>] section, distinct
from the [profile <name>] sections #config_value searches