docs/integrations/prefect-aws/api-ref/prefect_aws-bundles-execute.mdx
prefect_aws.bundles.executedownload_bundle_from_s3 <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/bundles/execute.py#L42" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>download_bundle_from_s3(bucket: str, key: str, output_dir: str | None = None, aws_credentials_block_name: Optional[str] = None) -> DownloadResult
Downloads a bundle from an S3 bucket.
Args:
bucket: S3 bucket namekey: S3 object keyoutput_dir: Local directory to save the bundle (if None, uses a temp directory)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:
execute_bundle_from_s3 <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/bundles/execute.py#L83" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>execute_bundle_from_s3(bucket: str, key: str, aws_credentials_block_name: Optional[str] = None) -> None
Downloads a bundle from S3 and executes it.
This step:
Args:
bucket: S3 bucket namekey: S3 object keyaws_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.main <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/bundles/execute.py#L152" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>main() -> None
DownloadResult <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-aws/prefect_aws/bundles/execute.py#L35" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>Result of downloading a bundle from S3.