Decompress GZ files daily with Lambda

Recipe ToolsMarketingDeveloper Tool

What it does

Every day at midnight, this automation runs Python code and invokes a Lambda function to decompress GZ files. The Lambda function processes the files and completes the decompression task on schedule.

Who it's for

Engineering teams who need to decompress GZ files automatically without manual intervention.

How teams use this

Decompress backup files nightly

Run the decompression at midnight each day so backup GZ files are ready for processing by morning. The team accesses uncompressed data without manual steps.

Decompress logs for data analytics

Invoke the Lambda function on a daily schedule to decompress archived log files so the data and analytics team can query them. Only the file source changes from backups to logs.

Add error notification on decompression failure

Include a condition to check if the Lambda function succeeds, and send an alert to a Slack channel when decompression fails. This requires adding a notification step after the Lambda invocation.

How it works

  1. Schedule decompression at midnight. Clock triggers this automation every day at 12:00 AM to start the GZ file decompression process.
  2. Prepare decompression logic. Py Eval runs Python code that sets up the decompression parameters and prepares the data for the Lambda function.
  3. Invoke Lambda to decompress files. Lambda function deployed on AWS receives the prepared data and executes the decompression of GZ files.