Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11529

Is it supported for per-module state file?

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 11529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>