Closed nathanstruhs closed 6 years ago
@nathanstruhs We'll use the osucascades
bucket. Here's the paperclip config from ecotone:
# production
config.paperclip_defaults = {
storage: :s3,
s3_region: ENV.fetch('AWS_REGION'),
url: ":s3_domain_url",
path: "/#{Rails.application.class.parent_name.downcase}/#{ENV.fetch('AWS_S3_ENV')}/:class/:attachment/:id/:style/:basename.:extension",
s3_credentials: {
bucket: ENV.fetch('AWS_S3_BUCKET'),
access_key_id: ENV.fetch('AWS_S3_KEY'),
secret_access_key: ENV.fetch('AWS_S3_SECRET'),
}
}
dependent environment variables:
AWS_S3_KEY=XXX
AWS_S3_SECRET=XXX
AWS_S3_BUCKET=osucascades
AWS_REGION=us-west-2
AWS_S3_ENV=production
(or staging
on bdadb-staging)
@nathanstruhs I'll set up the buckets.