prefect_aws.experimental.bundles.upload
S3 bundle steps for Prefect.
These steps allow uploading and downloading flow/task bundles to and from S3.
Functions
upload_bundle_to_s3
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.
- A dictionary containing:
- bucket: The S3 bucket the bundle was uploaded to
- key: The S3 key (path) the bundle was uploaded to
- url: The full S3 URL of the uploaded bundle (s3://bucket/key)
ValueError: If the local file does not existRuntimeError: If the upload fails