class MSS::Errors::MissingCredentialsError
Raised when MSS
credentials could not be found.
Public Class Methods
new(msg = nil)
click to toggle source
Calls superclass method
# File lib/mss/errors.rb, line 123 def initialize msg = nil msg ||= <<-MSG Missing Credentials. Unable to find MSS credentials. You can configure your MSS credentials a few different ways: * Call MSS.config with :access_key_id and :secret_access_key * Export MSS_ACCESS_KEY_ID and MSS_SECRET_ACCESS_KEY to ENV * On EC2 you can run instances with an IAM instance profile and credentials will be auto loaded from the instance metadata service on those instances. * Call MSS.config with :credential_provider. A credential provider should either include MSS::Core::CredentialProviders::Provider or respond to the same public methods. = Ruby on Rails In a Ruby on Rails application you may also specify your credentials in the following ways: * Via a config initializer script using any of the methods mentioned above (e.g. RAILS_ROOT/config/initializers/mss-sdk.rb). * Via a yaml configuration file located at RAILS_ROOT/config/mss.yml. This file should be formated like the default RAILS_ROOT/config/database.yml file. MSG super(msg) end