【发布时间】:2022-08-23 12:13:47
【问题描述】:
我正在尝试使用此extension 将我的 lambda 函数与用于日志传输的新遗物集成。我的 serverless.yml 代码 sn-p 看起来像这样
custom:
serverlessSsmFetch:
API_KEY: /aws/parameter/path/to/apiKey
newRelic:
linkedAccount: Account Name
accountId: XXXXXXX
apiKey: ${self:custom.serverlessSsmFetch.API_KEY}
enableFunctionLogs: true
cloudWatchFilter: \"*\"
plugins:
- serverless-python-requirements
- serverless-newrelic-lambda-layers
- serverless-ssm-fetch
但它会返回此警告并回退到使用 cloudwatch 进行日志传输。
Warning: Unable to find NR License key for extension validation; falling back to CloudWatch for transport.
Adding NewRelic layer to function1
Warning: Function \"function1\" already will be handled with provider.layers; skipping.
Warning: No New Relic AWS Lambda integration found for this New Relic linked account and aws account.
我检查了函数环境变量中的 apiKey,它得到了正确的密钥。
标签: logging aws-lambda amazon-cloudwatch newrelic newrelic-platform