I am trying to use terraform scripts that could generate multiple instances of infra having different states and variables . Currently i am testing if this is possible using terraform backend with local . Eventually we plan to move to azure vault to store multiple terraform states
I am aware that backend doest have variable support. But is there anyway i could pass the path variable to terraform init ?
*terraform {
backend "local" {
path = "./states/"${local.prefix}state.tfstate"
}
}*