A simple cloud solution template saving AWS Lambda log metrics into an S3 bucket, as well as writing metrics into an AWS EFS.
The system also automatically provisions AWS Athena for S3 object analysis and an EC2 instance with mounted EFS for varied uses.
The provisioning of the resources is done using Terraform (for static resources) and Serverless Framework (for business logic via Lambda). This is an attempt to use best features of both systems.
For communication between systems we're using SSM parameters, mainly setting them up in Terraform and reading them in Serverless.
- EFS with mount target and access point (Terraform)
- S3 bucket with ACL (Terraform)
- EC2 instance with configured VPC, Security Groups, private key and automatic EFS mounting (Terraform)
- Athena database (Terraform)
- AWS Lambda reading and writing logs (Serverless)