Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to specify the lock timeout on terraform plan and apply #82

Open
mark-russell-bossanova opened this issue Jul 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@mark-russell-bossanova
Copy link

Is your feature request related to a problem? Please describe.
I have my terraform state files on Google. I have run into situations where some one is running a terraform apply on their desk and CircleCi is running a build. This causes a build failure because CircleCi can not get the terraform remote lock. The default amount of wait time to get the lock is 0s.

Describe the solution you'd like
I would like to be able to add a -lock-timeout=sometimeout or pass a lock timeout to the parameter to terraform commands/jobs plan and apply. This way I would be able to have terraform wait for a specified amount of time to get the lock. This would avoid build failures in most cases.

Describe alternatives you've considered
I have looked through the code and since this has to be a command line parameter I see no way to pass it to the orb to add the parameter to terraform command

Additional context
With some guidance I will be willing to make a pull request for this.

@mark-russell-bossanova mark-russell-bossanova added the enhancement New feature or request label Jul 27, 2022
@mark-russell-bossanova
Copy link
Author

I will work this in to my next quarter's Goals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant