Module: Aws::Google::CredentialProvider
- Defined in:
- lib/aws/google/credential_provider.rb
Overview
Inserts GoogleCredentials into the default AWS credential provider chain. Google credentials will only be used if Aws::Google.config is set before initialization.
Instance Method Summary collapse
- #google_credentials(options) ⇒ Object
-
#providers ⇒ Object
Insert google_credentials as the third-to-last credentials provider (in front of process credentials and instance_profile credentials).
Instance Method Details
#google_credentials(options) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/aws/google/credential_provider.rb', line 12 def google_credentials() profile_name = determine_profile_name() if Aws.shared_config.config_enabled? Aws.shared_config.google_credentials_from_config(profile: profile_name) end rescue Errors::NoSuchProfileError nil end |
#providers ⇒ Object
Insert google_credentials as the third-to-last credentials provider (in front of process credentials and instance_profile credentials).
8 9 10 |
# File 'lib/aws/google/credential_provider.rb', line 8 def providers super.insert(-3, [:google_credentials, {}]) end |