Coder.comC
Coder.com14mo ago
28 replies
HappyShark

Should terraform init run on every deploy?

I've done an init locally to generate a terraform.lock.hcl and pushed that, but I can see that on every deploy Coder is running an init that's taking ~4-5 seconds, at least 3 of which is installing providers, which seems excessive if the providers had been cached locally from a previous run on a machine with an SSD.
I'm fairly new to terraform but I thought that if these were in place it should be able to skip that and go straight to plan/apply?

My current deployment is running off the coder:v2.18.2 docker image.
image.png
image.png
Was this page helpful?