You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
issue#8: Added example code for datadog log collector
This code was copied from another project and should be used as a reference. Im not sure if the functions directory is a good locaiton and the task definitions include incorrect account information. The task definition should by dynamically generated by the deploy script.
This commit is contained in:
18
functions/ddlogscollector/lambda-func-definition-dev.json
Normal file
18
functions/ddlogscollector/lambda-func-definition-dev.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"FunctionName": "{LAMBDA_FUNC}",
|
||||
"MemorySize": 512,
|
||||
"Role": "arn:aws:iam::074586779200:role/DatadogAWSIntegrationLambdaRole",
|
||||
"Timeout": 300,
|
||||
"Runtime": "python2.7",
|
||||
"TracingConfig": {
|
||||
"Mode": "PassThrough"
|
||||
},
|
||||
"Description": "Ship logs from cloudwatch to datadog",
|
||||
"Handler": "lambda_function.lambda_handler",
|
||||
"Environment": {
|
||||
"Variables": {
|
||||
"DD_API_KEY": "{DATADOG_APIKEY}",
|
||||
"LAMBDA_FUNC": "{LAMBDA_FUNC}"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user