I installed terraform-provider-newrelic_3.54.0_linux_amd64.zip on RHEL terminal.
I’m trying to use a local newrelic provider that I saved in the directory:/home/usr01/terraform_mirror/newrelic/newrelic
# ll /home/usr01/terraform_mirror/newrelic/newrelic/
total 4
--rw-r----- 1 root root 356 Jan 20 20:00 terraform-provider-newrelic_3.54.0_linux_amd64.zip
And here is my .terraformrc which located in the directory:/home/usr01
provider_installation{ filesystem_mirror { path="/home/usr01/terraform_mirror/newrelic/newrelic"
include = ["newrelic/newrelic"] }
direct{ exclude = ["newrelic/newrelic"] }
}
This is my main.tf
terraform {
required_providers {
newrelic = {
source = "newrelic/newrelic"
version = 3.54.0"
}
}
}
provider "newrelic" {
api_key = var.api_key
account_id = var.account_id
region = "US"
}
but when I run terraform init, the initialization does not go well.
|Error:Failed to query available provider packages
How can I fix this? Is the path plugin binary file wrong?