Closed nathanstruhs closed 6 years ago
Same auth keys but I need to create the bucket paths; it's on my list and will be done before Tuesday. Thanks for your patience.
@nathanstruhs You're all set with the folders. Bucket: osucascades (use the existing auth tokens you have, let me know if you need them / I'll document in basecamp).
folder: tracingresilience
subfolders: staging
, production
and development
(if necessary).
You can mimic the server env vars and paperclip config from ecotone.
config/production.rb:
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'),
}
}
end
@ybakos are we going use the same s3 bucket as BDA?