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

Improve behavior for terraform versioning in recink-terraform component #193

Open
avozicov opened this issue May 24, 2018 · 0 comments
Open
Assignees

Comments

@avozicov
Copy link
Contributor

I am facing issue related to terraform versioning during tf script execution by our recink terraform component

Please follow the steps to reproduce the issue:

  • Configure basic terraform script on your local machine https://www.terraform.io/intro/getting-started/build.html
  • Execute terraform apply with the latest version of terraform (0.11.1) to generate state file
  • Execute terraform destroy
  • Configure .recink.yml and define terraform component and module
  • Define terraform version = 0.11.0 under terraform component in .recink.yml
  • Define terraform version = 0.11.0 under terraform component in .recink.yml
  • Run recink run terraform

As a result apply action failed with the following error:

Error: Terraform doesn't allow running any operations against a state
  - that was written by a future Terraform version.

I was required to remove bin files to succeed with recink run terraform apply: true

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

No branches or pull requests

2 participants