thundra_agent_lambda_report_cloudwatch_enable
thundra-lambda-adapters-cw.
thundra_lambda-adapters_cw
to your AWS account:thundra-lambda-adapters-cw
Lambda function with the required configurations, permissions, and roles on the user’s end.Create Stack
Specify an Amazon S3 template URL
and set to https://s3-us-west-2.amazonaws.com/thundra-dist/thundra-lambda-adapters-cw-cloudformation-template.yaml and click Next
thundra-lambda-adapters-cw-stack
, configure memory size and timeout parameters if needed, and then click “Next
.”Next.
I acknowledge that AWS CloudFormation might create IAM resources with custom names.
under Capabilities
section and click Create
.thundra-lambda-adapters-cw
function in the AWS Lambda console. For each Lambda function that needs to be monitored:CloudWatch Logs
trigger/aws/lambda/<function-name>
format.{$.type = Invocation || $.type = Trace || $.type = Span || $.type = Metric || $.type = Log || $.type = Composite}
and click Add
Save
to apply the changes.npm install --save serverless-plugin-thundra-lambda-adapters-cw
serverless.yml
thundra_apiKey
environment variable, as explained here: https://github.com/thundra-io/serverless-plugin-thundra-lambda-adapters-cw/blob/master/README.md#usagethundraSkipLogGroupCreation
flag individually.thundraSkipAllLogGroupCreations
property globally.https://s3-us-west-2.amazonaws.com/thundra-dist/thundra-lambda-adapters-cw-deployer.jar
thundra-lambda-adapters-cw
Lambda function.thundra-lambda-adapters-cw
Lambda function to the log groups of Lambda functions needing to be monitored.thundra-lambda-adapters-cw-cloudformation-template.yaml
and monitored-function-resource-def-cloudformation-template.yaml
) to the directory where you run the deployer tool.~/.aws/credentials
. This property is optional.thundra-lambda-adapters-cw
Lambda function. This property is optional, and the default value is 512 MB.thundra-lambda-adapters-cw
Lambda function. This property is optional, and the default value is 300 seconds (5 minutes).thundra-lambda-adapters-cw
into region us-west-2
:
java -jar thundra-lambda-adapters-cw-deployer.jar -mode=adapter -region=us-west-2
thundra-lambda-adapters-cw
to my-func-1
and my-func-2
at region us-west-2
:
java -jar thundra-lambda-adapters-cw-deployer.jar -mode=subscription -region=us-west-2 functionNames=my-func-1,my-func-2
java -jar thundra-lambda-adapters-cw-deployer.jar -mode=full -region=us-west-2 functionNames=my-func-1,my-func-2
adapter
mode by -mode=adapter
argument, as explained above.subscription
mode by -mode=subscription
argument, as explained above.full
mode by -mode=full
argument, as explained above.