houdini/config/initializers/aws.rb
Kasia Jarmołkowicz be98ec94b7 Puts AWS config
2018-11-21 11:00:44 -06:00

10 lines
295 B
Ruby

# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
AWS.config({
region: Settings.aws.region,
access_key_id: Settings.aws.access_key_id,
secret_access_key: Settings.aws.secret_access_key
})
s3 = AWS::S3.new
S3Bucket = s3.buckets[Settings.aws.bucket]