Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Latest commit

 

History

History
55 lines (35 loc) · 1.7 KB

File metadata and controls

55 lines (35 loc) · 1.7 KB

AWS CloudTrail

AWS CloudTrail

Coralogix provides a predefined Lambda function to forward your CloudTrail logs straight to Coralogix.

Setup

  1. Create AWS CloudTrail trail and setup storage in your S3 bucket:

CloudTrail Setup

  1. Create an “author from scratch” Node.js 10.x runtime lambda with an S3 read permissions:

Lambda settings

  1. 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

Lambda code upload

  1. Add the mandatory environment variables: private_key, app_name, sub_name:

Lambda environment variables

  • 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.
  1. Choose the S3 bucket you want to get triggered by and change the event type from “PUT” to “Object Created(All)”:

Lambda trigger setup

  1. Increase Memory to 1024MB and Timeout to 1min:

Lambda basic settings

  1. Click “Save”.