newrelic / newrelic-lambda-cli

A CLI to install the New Relic AWS Lambda integration and layers.
https://newrelic.com/products/serverless-aws-lambda
Apache License 2.0
47 stars 53 forks source link

Support Docker runtime Lambdas #242

Open paw-j opened 1 year ago

paw-j commented 1 year ago

Summary

Support for Docker runtimes in lambda, currently can't install Lambda monitoring if you have "PackageType": "Image" in your Lambda.

I did not find much information regarding to this, neither warnings I spent all day trying to figure this out and found a couple of posts of people asking this issue. At least it would be nice to add a warning sepcifying that this setup is not compatible with docker images in lambda either in this repo, new relic console, blogs, etc...

Possible Solution

Perhaps instructions installing it inside the docker image that runs in lambda, you could keep the setup in the cli for linking aws accounts, setting roles with required policies, etc.

chaudharysaket commented 5 months ago

At the time, you can use our container images to create container lambdas and provide necessary environment variables to the lambda for Newrelic instrumentation. The CLI changes to instrument docker lambda is in progress.