Skip to content

Instantly share code, notes, and snippets.

View bhison's full-sized avatar

Tim Bhison bhison

  • Bristol, UK
View GitHub Profile
@bhison
bhison / aws-lambda-unzipper.py
Last active August 6, 2021 10:34 — forked from msharp/aws-lambda-unzipper.py
unzip archive from S3 on AWS Lambda, in place, retain contentType
import os
import sys
import re
import boto3
import zipfile
#Expand on this based on which filetypes you expect to recieve
mimeTypes = {
".html": "text/html",
".png": "image/png",