local:
  service: Disk
  root: <%= Rails.root.join("storage") %>

test:
  service: Disk
  root: <%= Rails.root.join("tmp/storage") %>

amazon:
  service: S3
  bucket: <%= ENV["UPLOADED_IMAGES_S3_BUCKET"] %>
  region: <%= ENV["AWS_REGION"] %>
  http_open_timeout: 5
  http_read_timeout: 5
  retry_limit: 3

local:
  service: Disk
  root: <%= Rails.root.join("storage") %>

test:
  service: Disk
  root: <%= Rails.root.join("tmp/storage") %>

amazon:
  service: S3
  bucket: <%= ENV["UPLOADED_IMAGES_S3_BUCKET"] %>
  region: <%= ENV["AWS_REGION"] %>
  http_open_timeout: 5
  http_read_timeout: 5
  retry_limit: 3
  instance_profile_credentials_retries: 3
  instance_profile_credentials_timeout: 3

Set reasonable retry/timeout limits for credentials
Set reasonable retry/timeout limits for credentials

By default the AWS SDK doesn't retry and has a timeout of 1s.
