forked from newrelic/aws-log-ingestion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
40 lines (32 loc) · 992 Bytes
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
service: newrelic-log-ingestion
provider:
name: aws
runtime: python3.7
stage: production
timeout: 30
# Uncomment this line to use your own IAM role
#role: arn:aws:iam::YourAccountNumber:role/YourIamRole
environment:
# Determines if logs are forwarded to New Relic Infrastructure
INFRA_ENABLED: ${env:INFRA_ENABLED, "True"}
# Your NewRelic license key
LICENSE_KEY: ${env:LICENSE_KEY}
# Determines if logs are forwarded to New Relic Logging
LOGGING_ENABLED: ${env:LOGGING_ENABLED, "False"}
custom:
pythonRequirements:
dockerizePip: true
fileName: ./src/requirements.txt
package:
exclude:
- ./**
include:
- ./LICENSE
- ./src/function.py
functions:
newrelic-log-ingestion:
description: Send log data from CloudWatch Logs and S3 to New Relic Infrastructure (Cloud Integrations) and New Relic Logging.
handler: src/function.lambda_handler
name: newrelic-log-ingestion
plugins:
- serverless-python-requirements