forked from newrelic/aws-log-ingestion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
47 lines (39 loc) · 1.48 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
43
44
45
46
service: newrelic-log-ingestion
provider:
name: aws
region: us-west-2
runtime: python3.9
stackName: newrelic-log-ingestion-${opt:stage}
stage: ${opt:stage, 'dev'} # Set the default stage used. Default is dev
deploymentBucket:
name: newrelic-log-ingestion-${opt:stage}-deployment-bucket
blockPublicAccess: true # Prevents public access via ACLs or bucket policies. Default is false
# 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: ${file(env.yml):${opt:stage}.LICENSE_KEY}
# Determines if logs are forwarded to New Relic Logging
LOGGING_ENABLED: ${env:LOGGING_ENABLED, "True"}
# 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:
pythonBin: python3
dockerizePip: false
fileName: ./src/requirements.txt
package:
patterns:
- '!./**'
- ./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-${opt:stage}
plugins:
- serverless-python-requirements
- serverless-deployment-bucket