diff --git a/filenameprocessor/src/decrpyt_key.py b/filenameprocessor/src/decrpyt_key.py index 217b4da4..3a530996 100644 --- a/filenameprocessor/src/decrpyt_key.py +++ b/filenameprocessor/src/decrpyt_key.py @@ -4,7 +4,7 @@ def decrypt_key(os_env_key_name): - + print("starting decryption") # Get the encrypted environment variable encrypted_value = os.getenv(os_env_key_name) diff --git a/filenameprocessor/src/make_and_upload_ack_file.py b/filenameprocessor/src/make_and_upload_ack_file.py index e680ae21..5eb386d9 100644 --- a/filenameprocessor/src/make_and_upload_ack_file.py +++ b/filenameprocessor/src/make_and_upload_ack_file.py @@ -45,7 +45,7 @@ def upload_ack_file(file_key: str, ack_data: dict) -> None: csv_buffer.seek(0) csv_bytes = BytesIO(csv_buffer.getvalue().encode("utf-8")) ack_bucket = decrypt_key("ACK_BUCKET_NAME") - ack_bucket_name = os.getenv(ack_bucket, f"immunisation-batch-{get_environment()}-data-destinations") + ack_bucket_name = ack_bucket s3_client.upload_fileobj(csv_bytes, ack_bucket_name, ack_filename)