public void TestDownloadFileFromS3Async() { var client = new S3Service(); String bucketName = Environment.GetEnvironmentVariable("SCREEN3_S3_BUCKET"); string targetFolder = "/tmp/screen3_temp_files/originSourceFiles/"; client.DownloadFileFromS3Async(bucketName, "source/1997-2006.zip", targetFolder).Wait(); }
public async Task <String> DownloadFileAsync(string bucketName, string keyName, string tempFolder) { LambdaLogger.Log($"In DownloadFileAsync. bucketName: {bucketName}, keyName: {keyName}, tempFolder: {tempFolder}.\n"); S3Service service = new S3Service(); String resultFileName = await service.DownloadFileFromS3Async(bucketName, keyName, tempFolder); return(resultFileName); }