Set-Content -Path myfile.txt -Value 'PowerShell Rocks'
Write-S3Object -BucketName powershell -File myfile.txt
Uploading files from your local filesystem into AWS S3 is easy, using the Write-S3Object
command. In its most basic form, you only need to specify the -BucketName
parameter, to indicate which S3 bucket you want to upload a file into, and the -File
parameter, which indicates the relative or absolute path to the local file that you want to upload into the S3 bucket.