Heres my setup; - I have a local PC running ffmpeg with output configured to h.264 and aac - and S3 bucket created at AWS
what i need to do is, use ffmpeg [local] ou
It could be late to answer this question, but I think this may be useful for others.
You can use this method to write output file to your S3 server.
ffmpeg -re -i in.ts -f hls -method PUT http://example.com/live/out.m3u8
Read more in https://ffmpeg.org/ffmpeg-all.html#hls-2