Hi guys
Im facing an error when I’m trying to use New Relic provider in Terraform
Error: 401 response returned: Bad API Key or no API Key provided
on main.tf line 7, in resource “newrelic_alert_policy” “apache_policy”:
7: resource “newrelic_alert_policy” “apache_policy” {
I’m getting API key form Account settings -> API keys -> REST API key
or
https://rpm.newrelic.com/accounts//integrations?page=api_keys
I have tried to use API in my code as wall as set it as a Env variable “NEW_RELIC_API_KEY”
but facing same error again.
Can you please help ?
Thanks in advance