From 8d902e68106f9550e52fb8efe43538a2fbc4254c Mon Sep 17 00:00:00 2001 From: sagarggh Date: Fri, 11 Nov 2022 10:02:27 +0545 Subject: [PATCH] [payload][xs]: Aircan dagrun payload updated with s3 ckan configs --- ckanext/aircan_connector/logic/action.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ckanext/aircan_connector/logic/action.py b/ckanext/aircan_connector/logic/action.py index af92104..9df0413 100644 --- a/ckanext/aircan_connector/logic/action.py +++ b/ckanext/aircan_connector/logic/action.py @@ -131,6 +131,13 @@ def aircan_submit(context, data_dict): "ckan_config": { "api_key": ckan_api_key, "site_url": config.get('ckan.site_url'), + 'ckan_s3_access_key_id': config.get('ckanext.s3filestore.aws_access_key_id', ''), + 'ckan_s3_secret_access_key': config.get('ckanext.s3filestore.aws_secret_access_key', ''), + 'ckan_s3_bucket_name': config.get('ckanext.s3filestore.aws_bucket_name', ''), + 'ckan_s3_storage_path': config.get('ckanext.s3filestore.aws_storage_path', ''), + 'ckan_s3_host_name': config.get('ckanext.s3filestore.host_name', ''), + 'ckan_s3_region_name': config.get('ckanext.s3filestore.region_name', ''), + 'ckan_s3_signature_version': config.get('ckanext.s3filestore.signature_version','s3v4'), "ckan_datastore_postgres_url": config.get('ckan.datastore.write_url'), "aircan_load_with_postgres_copy": config.get('ckanext.aircan.load_with_postgres_copy', False), "aircan_datastore_chunk_insert_rows_size": config.get('ckanext.aircan.datastore_chunk_insert_rows_size', 250),