jmccann / drone-terraform

Drone plugin for triggering Terraform deployments
http://plugins.drone.io/jmccann/terraform/
Apache License 2.0
86 stars 93 forks source link

Lock on all commands #55

Closed jrynyt closed 7 years ago

jrynyt commented 7 years ago

State locking configuration is not persisted with terraform init. The -lock and -lock-timeout flags must be passed to every invocation of terraform that touch the state file, so plan/apply/destroy.

This version is available now at jrynyt2/drone-terraform:latest

New output example:

$ terraform plan -out=plan.tfout -var env=dev -lock=true -lock-timeout=300s

If it waits, after some time:

Acquiring state lock. This may take a few moments...