Upload a Local File Into an S3 Bucket

suggest change
Set-Content -Path myfile.txt -Value 'PowerShell Rocks'
Write-S3Object -BucketName powershell -File myfile.txt

Write-S3Object is in the AWS.Tools.S3 module, or the older AWSPowerShell module. -BucketName is the destination bucket. -File is the path of the local file. Set-Content writes myfile.txt in the current location.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents