I want to create a file with a string on s3 using the aws command, i cannot find such a thing in aws cli documentation, has anyone came across such thing ?
The aws s3 cp
command can take input from stdin:
echo Hello | aws s3 cp - s3://my-bucket/foo.txt
It can also send content to stdout:
aws s3 cp s3://my-bucket/foo.txt -
See:
cp
— AWS CLI Command Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With