The LogReceiverLambda function is responsible for receiving incoming log file content via HTTP POST requests and storing it in two separate S3 buckets: one for uncompressed log files and another for compressed log files.
- 📥 Handles incoming log file content.
- 🗃 Stores uncompressed log files in the first S3 bucket.
- 🔄 Triggers the
CompressLambdafunction to compress and store log files in the second S3 bucket.
-
Receive Log Content:
- Listens for HTTP POST requests containing log file content.
- Stores uncompressed log content in the first S3 bucket.
-
Compression (Async):
- Asynchronously triggers the
CompressLambdafunction to compress log content. - Compressed log content is stored in the second S3 bucket.
- Asynchronously triggers the
UNCOMPRESSED_S3_BUCKET_NAME: Name of the bucket for storing uncompressed log files.COMPRESSED_S3_BUCKET_NAME: Name of the bucket for storing compressed log files.
The CompressLambda function is triggered asynchronously by LogReceiverLambda. Its sole purpose is to compress log content and store it in a dedicated S3 bucket.