scinote-web/config/initializers/aws.rb
2018-02-01 15:44:08 +01:00

10 lines
256 B
Ruby

if ENV['AWS_ACCESS_KEY_ID']
Aws.config.update(
region: ENV['AWS_REGION'],
credentials: Aws::Credentials.new(
ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
)
)
S3_BUCKET = Aws::S3::Resource.new.bucket(ENV['S3_BUCKET'])
end