Sha256: 9fcf4b24ce751a76a852508d0db2bae609c771a5f9aa98f7a10ad4d62fa19c2a

Contents?: true

Size: 804 Bytes

Versions: 4

Compression:

Stored size: 804 Bytes

Contents

require "aws-sdk"

module Outliers
  module Providers
    module Aws
      module Shared

        def settings(args)
          @access_key_id     = args.fetch :access_key_id
          @secret_access_key = args.fetch :secret_access_key
          @region            = args.fetch :region, 'us-east-1'
        end

        def config
          { :access_key_id     => @access_key_id,
            :secret_access_key => @secret_access_key,
            :region            => @region }
        end

        module_function

        def credential_arguments
          {
            'access_key_id'     => 'AWS Account Access Key',
            'secret_access_key' => 'AWS Account Secret Key',
            'region'            => 'AWS Region (Default us-east-1)'
          }
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
outliers-0.2.0 lib/outliers/providers/aws/base.rb
outliers-0.1.1 lib/outliers/providers/aws/base.rb
outliers-0.1.0 lib/outliers/providers/aws/base.rb
outliers-0.0.1 lib/outliers/providers/aws/base.rb