Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
a list of configuration options for django-storages' boto backends

Configuration options used by S3BotoStorage and S3Boto3Storage

This is a list of common and divergent configuration options for django-storages' boto backends:

  • storages.backends.s3boto.S3BotoStorage
  • storages.backends.s3boto3.S3Boto3Storage and

Created to cope with the documentation which reads:

"Available are numerous settings. It should be especially noted the following:"

... with no indication of where to find a comprehensive list of the settings that were not noted.

Constructed using some grep, sed, uniq commands at my command line. Might not be comprehensive. Common options not behave the same in both classes.

Common to S3BotoStorage and S3Boto3Storage

AWS_ACCESS_KEY_ID *
AWS_AUTO_CREATE_BUCKET *
AWS_BUCKET_ACL
AWS_DEFAULT_ACL *
AWS_IS_GZIPPED *
AWS_LOCATION *
AWS_PRELOAD_METADATA
AWS_QUERYSTRING_AUTH *
AWS_QUERYSTRING_EXPIRE *
AWS_REDUCED_REDUNDANCY
AWS_S3_CUSTOM_DOMAIN
AWS_S3_ENCRYPTION *
AWS_S3_FILE_BUFFER_SIZE
AWS_S3_FILE_NAME_CHARSET
AWS_S3_FILE_OVERWRITE *
AWS_S3_MAX_MEMORY_SIZE
AWS_S3_SECURE_URLS
AWS_S3_URL_PROTOCOL
AWS_S3_USE_SSL *
AWS_SECRET_ACCESS_KEY *
AWS_STORAGE_BUCKET_NAME *

Used only by S3BotoStorage:

AWS_HEADERS *
AWS_ORIGIN
AWS_S3_CALLING_FORMAT *
AWS_S3_HOST
AWS_S3_PORT
AWS_S3_PROXY_HOST
AWS_S3_PROXY_PORT

Used only by S3Boto3Storage:

AWS_S3_ADDRESSING_STYLE
AWS_S3_ENDPOINT_URL *
AWS_S3_OBJECT_PARAMETERS *
AWS_S3_REGION_NAME *
AWS_S3_SIGNATURE_VERSION

* = mentioned by documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment