Skip to content

Commit

Permalink
Add upload S3 Bucket Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Sep 27, 2013
1 parent 6bda1e5 commit 7ee2fa8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions UploadtoS3Bucket/UploadtoS3Bucket.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# define
$path = "d:\s3upload"
$s3bucketname = "public"

# upload file to s3
Get-ChildItem -Path $path `
| %{
Write-S3Object -BucketName $s3bucketname -File $_.Name -Key $_.Name -CannedACLName PublicRead
}

0 comments on commit 7ee2fa8

Please sign in to comment.