1 Answer
- Newest
- Most votes
- Most comments
1
The tarfile module can be used to unpack in Python.
https://docs.python.org/3/library/tarfile.html
sample
import tarfile
file = tarfile.open('filename.tar.gz', 'r = gz')
file.extractall()
file.close()
If my answer is helpful, please approve it for the betterment of the community.
Relevant content
asked 4 years ago
asked 5 years ago
- AWS OFFICIALUpdated 7 months ago

@Riku_Kobayashi - thanks , i have file stored in an s3 location. i need to download it first, right?
Yes, you need to download the S3 file to Lambda and then unzip it.