Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def aws_read(bucket, key, file_name, creds=(None, None), endpoint=None):
client = StorageEngines.boto3.client('s3',
aws_access_key_id=creds[0],
aws_secret_access_key=creds[1],
endpoint_url=None
)
client.download_file(bucket, key, file_name)