forked from newrelic/aws-log-ingestion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
42 lines (34 loc) · 1.12 KB
/
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
41
42
service: newrelic-log-ingestion
provider:
name: aws
runtime: python3.11
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"}
# A boolean to determine if you want to output debug messages in the CloudWatch console
DEBUG_LOGGING_ENABLED: ${env:DEBUG_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 to New Relic Infrastructure (Cloud Integrations) and New Relic Logging.
handler: src/function.lambda_handler
name: newrelic-log-ingestion
plugins:
- serverless-python-requirements