Unzip a file to s3
<p>I am looking at a simple way to extract a zip/gzip present in s3 bucket to the same bucket location and delete the parent zip/gzip file post extraction.</p>

<p>I am unable to achieve this with any of the API's currently.</p>

<p>Have tried native boto, pyfilesystem(fs), s3fs.
The source and destination links seem to be an issue for these functions.</p>

<p>(Using with Python 2.x/3.x &amp; Boto 2.x )</p>

<p>I see there is an API for node.js(unzip-to-s3) to do this job , but none for python.</p>

<p>Couple of implementations i can think of:</p>

<ol>
<li>A simple API to extract the zip file within the same bucket.</li>
<li>Use s3 as a filesystem and manipulate data</li>
<li>Use a data pipeline to achieve this</li>
<li>Transfer the zip to ec2 , extract and copy back to s3.</li>
</ol>

<p>The option 4 would be the least preferred option, to minimise the architecture overhead with ec2 addon.</p>

<p>Need support in getting this feature implementation , with integration to  lambda at a later stage. Any pointers to these implementations are greatly appreciated.</p>

<p>Thanks in Advance,</p>

<p>Sundar.</p>