Last active
August 1, 2016 14:23
-
-
Save thebentern/d17ec6a90a23b895fb00943a839023b0 to your computer and use it in GitHub Desktop.
S3 Uploader Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$key = "mykey" | |
$secretKey = "mysecretkey" | |
$bucketName = "bucketName" | |
Set-AWSCredentials -AccessKey $key -SecretKey $secretKey -StoreAs MyProfileName | |
foreach ($file in Get-ChildItem "D:\Exceed Extracts\Batch") | |
{ | |
if ($file.Length -gt 0) | |
{ | |
Write-S3Object -BucketName $bucketName -File $file.FullName -ProfileName MyProfileName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment