Coralogix provides a predefined Lambda function to forward your CloudTrail
logs straight to Coralogix.
- Create
AWS CloudTrail
trail and setup storage in your S3 bucket:
- Create an
“author from scratch”
Node.js 10.x runtime lambda with an S3 read permissions:
- At
“Code entry type”
choose“Upload a ZIP file”
and upload“s3ToCoralogixCloudTrail.zip”
:
https://s3-eu-west-1.amazonaws.com/coralogix-public/tools/s3ToCoralogixCloudTrail.zip
- Add the mandatory environment variables:
private_key
,app_name
,sub_name
:
- Private Key – A unique ID which represents your company, this Id will be sent to your mail once you register to Coralogix.
- Application Name – Used to separate your environment, e.g. SuperApp-test/SuperApp-prod.
- SubSystem Name – Your application probably has multiple subsystems, for example, Backend servers, Middleware, Frontend servers etc.
- Choose the S3 bucket you want to get triggered by and change the event type from
“PUT”
to“Object Created(All)”
:
- Increase
Memory
to1024MB
andTimeout
to1min
:
- Click
“Save”
.