1
0
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:
Lee Brown
2019-07-15 12:55:56 -08:00
parent 4867b207f2
commit 28144332f1
4 changed files with 559 additions and 0 deletions

View 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}"
}
}
}