Sha256: 77ff5e0579a57490418db5f76fed68af20f16d4bfb73778efc235f7b35c60228

Contents?: true

Size: 393 Bytes

Versions: 7

Compression:

Stored size: 393 Bytes

Contents

require 'aws-sdk'
require 'dotenv'

module CertificationHelper
  def aws_certificate
    Dotenv.load
    yaml_region = ConfigurationHelper.get_yaml_region
    region = ENV['AWS_REGION']
    region = yaml_region if region.nil?
    Aws.config.update(
        access_key_id: ENV['AWS_ACCESS_KEY_ID'],
        secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
        region: region
    )
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
etude_for_aws-0.7.10 lib/etude_for_aws/helpers/certification_helper.rb
etude_for_aws-0.7.9 lib/etude_for_aws/helpers/certification_helper.rb
etude_for_aws-0.7.8 lib/etude_for_aws/helpers/certification_helper.rb
etude_for_aws-0.7.7 lib/etude_for_aws/helpers/certification_helper.rb
etude_for_aws-0.7.6 lib/etude_for_aws/helpers/certification_helper.rb
etude_for_aws-0.7.5 lib/etude_for_aws/helpers/certification_helper.rb
etude_for_aws-0.7.4 lib/etude_for_aws/helpers/certification_helper.rb