Skip to content

Conversation

@costimuraru
Copy link
Contributor

@costimuraru costimuraru commented Feb 8, 2019

Description

Useful for cases where the tf states are stored remotely (ie. in an S3 bucket) with DynamoDB locking. If something happens (eg. credentials expire, terraform crashes), it would be useful to have a way to remove the lock that was acquired. Currently, this can only be done manually, by going to DynamoDB and removing the entry (the lock). However, terraform has a command to remove it.

This PR makes it possible to run:

ops clusters/mycluster.yaml terraform force-unlock c462b73c-9df7-5901-d84f-6c384d854fce

ops clusters/mycluster.yaml terraform state push errored.tfstate

Related Issue

Fixes #10

screenshot 2019-02-08 19 05 34

Copy link

@Allex1 Allex1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐾 it

@costimuraru costimuraru merged commit eed6fc9 into master Feb 11, 2019
@costimuraru costimuraru deleted the force_unlock branch February 11, 2019 12:48
@catacgc
Copy link

catacgc commented Mar 5, 2019

Can you also add this to the readme file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants