docs/integrations/prefect-aws/api-ref/prefect_aws-experimental-bundles-upload.mdx
prefect_aws.experimental.bundles.uploadS3 bundle steps for Prefect. These steps allow uploading and downloading flow/task bundles to and from S3.
upload_bundle_to_s3 <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/experimental/bundles/upload.py#L29" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>upload_bundle_to_s3(local_filepath: str, bucket: str, key: str, aws_credentials_block_name: Optional[str] = None) -> UploadResult
Uploads a bundle file to an S3 bucket.
Args:
local_filepath: Local path to the bundle filebucket: S3 bucket namekey: S3 object key (if None, uses the bundle filename)aws_credentials_block_name: Name of the AWS credentials block to use. If None,
credentials will be inferred from the environment using boto3's standard
credential resolution.Returns:
Raises:
ValueError: If the local file does not existRuntimeError: If the upload failsUploadResult <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/experimental/bundles/upload.py#L18" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>Result of uploading a bundle to S3.