Install the extension:
Activate CKAN virtualenv
. /usr/lib/ckan/default/bin/activate
Install from source
cd /some/dir/ckanext-cloudconnector
python setup.py install
Enable the plugin in your CKAN config file:
ckan.plugins = cloud_connector
Configuration settings (can also be configured via Admin UI ‘Cloud connector’ tab):
Enable or disable cloud storage connector
ckan.cloud_storage_enable = true
AWS S3 customer key
ckan.s3_aws_key = YOUR_AWS_S3_KEY
AWS S3 secret key
ckan.s3_secret_key = YOUR_AWS_S3_SECRET
Failover behavior when cloud upload fails:
1 = save file locally as fallback
2 = raise exception (strict cloud-only mode)
ckan.cloud_failover = 1
Restart CKAN:
sudo service apache2 reload
Requirements:
- Active AWS account
- Valid AWS Key and AWS Secret Key
- S3 bucket created for resource storage
- boto library (installed automatically as dependency)
Note: Currently supports only Amazon S3. Configuration can be set in config file or managed dynamically through CKAN’s admin interface under the ‘Cloud connector’ tab. All dependencies install automatically during setup.