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 second-to-last credentials provider (in front of instance profile, which makes an http request).
Instance Method Details
#google_credentials(options) ⇒ Object
12 13 14 |
# File 'lib/aws/google/credential_provider.rb', line 12 def google_credentials() (config = Google.config) && Google.new(.merge(config)) end |
#providers ⇒ Object
Insert google_credentials as the second-to-last credentials provider (in front of instance profile, which makes an http request).
8 9 10 |
# File 'lib/aws/google/credential_provider.rb', line 8 def providers super.insert(-2, [:google_credentials, {}]) end |