ljfranklin / terraform-resource

A concourse resource to create infrastructure via Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to specify state locking timeout

antonysouthworth-halter opened this issue · comments

Terraform provides the -lock-timeout flag to allow waiting for the lock if it's already been acquired, instead of immediately aborting the operation with status code 1.

It would be handy if this resource provided a similar lock-timeout parameter, it could simply forward the argument to the -lock-timeout flag to Terraform.

Example step usage: wait up to 30 seconds for the lock

- put: terraform
  params:
    lock-timeout: 30s

Sounds reasonable, added the "help wanted" tag if you or someone else wants to contribute this feature.