terraform workspace new -lock=false
doesn't work as advertised
#36088
Labels
terraform workspace new -lock=false
doesn't work as advertised
#36088
Terraform Version
Terraform Configuration Files
backend.tf.json
:Debug Output
Expected Behavior
terraform workspace new -lock=false foo
should not try to lock the state.Actual Behavior
terraform workspace new -lock=false foo
fails if a DynamoDB lock is held by some other process.Steps to Reproduce
There is probably an easier way to reproduce this but this is more or less what happened:
On one host:
default
workspace (let's call itfoo
)apply
On another host:
default
workspace: Try to clean up the mess viaterraform force-unlock $uuid
(result:Failed to unlock state: failed to retrieve lock info for lock ID "8ac7bbfc-c1b4-615d-38d7-f7ba634aa4bb": unexpected end of JSON input
because the wrongLockID
is looked up according to the debug log)terraform workspace new foo
: This will fail due to the existing lock-lock=file
option and try it withterraform workspace new -lock=false foo
: This will fail, tooAdditional Context
No response
References
atmos terraform force-unlock
does not work cloudposse/atmos#800The text was updated successfully, but these errors were encountered: