I’ve been going over documentation and I do see a way to instrument your AWS function with New Relic (A necessary step, and which is prior to using Terraform itself). However, in going over the documentation for the New Relic provider, it isn’t clear that in the New Relic Terraform, the AWS Lambda function can be referenced as a data
entity:
https://registry.terraform.io/providers/newrelic/newrelic/latest/docs/data-sources/entity
I see an APM
as a data entity such as in:
data "newrelic_entity" "app" {
name = "my-app"
domain = "APM"
type = "APPLICATION"
tag {
key = "my-tag"
value = "my-tag-value"
}
}
However, it isn’t clear what domain
and type
combination from the above documentation - and shown below - would be used to reference an AWS lambda function whose data is in New Relic, if possible at all, at this current time:
This is a really needed feature if it is not already available, since perhaps for many, AWS Lambda data in New Relic is a basic and needed data source.