![]() The standard output is then piped to imagemin and used as input stream. ![]() S3 will start to stream the binary content of s3://my-images/image.png to the standard output.What will happen behind the scene with this pipeline of commands is the following: Using this newly acquired piece of knowledge, we now know we can do something like this to write content from the standard output directly to a file in S3:Īws s3 cp s3://my-images/image.png - | imagemin | aws s3 cp - s3://my-images-optimized/image.png To make it simple, when running aws s3 cp you can use the special argument - to indicate the content of the standard input or the content of the standard output (depending on where you put the special argument). Downloading as a stream is not currently compatible The following cp command downloads an S3 object locally as a stream to ![]() The following cp command uploads a local file stream from standardÄownloading an S3 object as a local file stream WARNING:: PowerShell may alter the encoding of or add a CRLF to piped
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |