# How to create reproducible ZIPs for AWS Lambda

DevFeed: [How to create reproducible ZIPs for AWS Lambda](<https://devfeed.tech/articles/how-to-create-reproducible-zips-for-aws-lambda-5668.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/zip-archive-aws-lambda>)

Author: Misha Shiryaev

Published: 2025-08-28T09:44:47Z

Content type: tutorial

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Python](<https://devfeed.tech/topics/python.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [macOS](<https://devfeed.tech/topics/macos.md>)

Tags: [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [linux](<https://devfeed.tech/tags/linux.md>), [macos](<https://devfeed.tech/tags/macos.md>), [opentofu](<https://devfeed.tech/tags/opentofu.md>), [python](<https://devfeed.tech/tags/python.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

## AI overview

The article explains how ClickHouse created reproducible ZIP archives for Python-based AWS Lambda functions. It discusses stable file ordering, normalized modification times, excluding Python byte-code files, and avoiding operating-system differences by creating the archive with Python. The workflow is intended for CI/CD infrastructure managed with Terraform/OpenTofu and avoids extra artifact infrastructure such as S3.

## Source excerpt

Lessons from making reproducible ZIPs for Python Lambdas in CI/CD with Terraform and OpenTofu.