#Terraform plugin/module handling best practices

1 messages · Page 1 of 1 (latest)

dreamy torrent
#

Hey DevOps fellows,
I'm trying to get familiar with Dagger and eventually move our CI/CD pipelines to this new deployment strategy. However, I'm having a hard time understanding this new caching mechanism here.

Is there any guide that I can follow which is written for Dagger Terraform Best Practices? I keep seeing node_modules and such but where is Terraform providers caching documentation 😄

I have multiple folders that I execute in order and I just wanted to develop a quick pipeline demo without implementing all my shell scripts to native golang.

My issue is ofc this pipelines work perfectly fine but I was hoping to see my next executions would be much more faster with MountedCache usages. I even tried to set TF_CACHE_DIR to prevent downloading the same provider over and over again however It didn't even work somehow(maybe passing that as terraform argument would be better? ). Maybe I'm missing something here and after I tried so many different settings like including terraform hcl lock files and such I even lost what was the best working method for me here.

Do you see any logical mistake in the screenshot beside it is really basic/hardcoded structure? Why my cache is failing me? Unfortunately, It is really hard to find so much documentation regarding Dagger, and I keep circling the same pages over and over again.

thorn wolf
#

cc @strange shadow probably has some war stories to share here