I have several modules shared by different project, e.g. projectA/main.tf and projectB/main.tf, written by terraform like below
module “moduelA” {
source = “./modules/moduelA”
}
I have set the remote backend to use AWS s3 bucket “moduleA” to store state file, and would like a) moduleA to generate its own state file which separates from other modules and b) moduleA reuses the same state file regardless it’s used by projectA or projectB
Is it doable?
Thanks