How do i get rid of this warning ?
│ Warning: Backend configuration ignored
│
│ on …/modules/main.tf line 40, in terraform:
│ 40: backend “http” {
│
│ Any selected backend applies to the entire configuration, so Terraform expects provider configurations only in the root module.
│
│ This is a warning rather than an error because it’s sometimes convenient to temporarily call a root module as a child module for
│ testing purposes, but this backend configuration block will have no effect.
this is how i declared my providers.tf:
terraform {
required_providers {
}
backend “http” {
address = “…”
lock_address = “…”
unlock_address = “…”
}
}
my file structure this way :
------PROJECT
----modules
-main.tf
-providers.tf
-variables.tf
----terraform
-main.tf