Upload a Local File Into an S3 Bucket
suggest changeSet-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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents