Casey M
09/25/2023, 9:25 PMfrom prefect_aws import AwsCredentials
, but I like to use the standardized boto3 when uploading files.
Here is the function:
def save_to_s3(directory, file_name, local_file_path):
s3 = boto3.resource('s3')
key = f"{directory}/{file_name}"
s3.meta.client.upload_file(local_file_path, 'test-updates', key)