libera_utils.aws.s3_utilities.s3_put_in_archive_for_processing_step#

libera_utils.aws.s3_utilities.s3_put_in_archive_for_processing_step(path_to_file: Path | S3Path, processing_step: str | ProcessingStepIdentifier, *, account_suffix: str | LiberaAccountSuffix | None = LiberaAccountSuffix.STAGE)#

Upload a file to the archive S3 bucket associated with a given processing step.

Parameters:
  • path_to_file (Path) – Local path to the file to upload

  • processing_step (str) – processing_step : Union[str, constants.ProcessingStepIdentifier] Processing step ID string or object. Used to infer the S3 archive bucket name.

  • account_suffix (Union[str, constants.LiberaAccountSuffix], optional) – Account suffix for the bucket name, by default constants.LiberaAccountSuffix.STAGE