Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions aws/logs_monitoring/log-sam-template.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Pushes logs and metrics from AWS to Datadog.
Parameters:
FunctionName:
Default: ''
Description: 'Define custom function name, if needed'
Type: 'String'
Conditions:
CustomFunctionName: !Not [!Equals [!Ref 'FunctionName', '']]
Resources:
loglambdaddfunction:
Type: 'AWS::Serverless::Function'
Properties:
FunctionName: !If ['CustomFunctionName', !Ref 'FunctionName', !Ref 'AWS::NoValue']
Description: Pushes logs and metrics from AWS to Datadog.
Handler: lambda_function.lambda_handler
MemorySize: 1024
Expand Down