Skip to content

Commit

Permalink
Merge pull request #35 from datopian/fix/s3-config
Browse files Browse the repository at this point in the history
Aircan dagrun payload updated with s3 ckan configs
  • Loading branch information
sagargg authored Nov 25, 2022
2 parents c981bf1 + 8d902e6 commit 2736da9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ckanext/aircan_connector/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2736da9

Please sign in to comment.