Skip to content

[handler].zip 【720p 2027】

Manually zipping files is prone to error. The HashiCorp Archive Provider is the industry-standard way to automate the creation of handler.zip within a CI/CD pipeline.

Once generated, the ZIP file is uploaded to the cloud provider. [handler].zip

data "archive_file" "lambda_zip" { type = "zip" source_file = "${path.module}/src/handler.py" output_path = "${path.module}/dist/handler.zip" } Use code with caution. Copied to clipboard : Points to your raw script (e.g., src/handler.py ). Manually zipping files is prone to error