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

Support for Refactoring #3376

Closed
jasonkuhrt opened this issue Oct 1, 2015 · 3 comments
Closed

Support for Refactoring #3376

jasonkuhrt opened this issue Oct 1, 2015 · 3 comments

Comments

@jasonkuhrt
Copy link

After using terraform for around ten days and discussing different features/workflows with various people in IRC it has become clear that there is no support for refactoring in Terraform. Quote:

09:47 jedineeper: jasonkuhrt: painful :) very painful :)
@jedineeper

The suggestions I got were:

  1. "tear it down and redeploy it in the new module/code"
  2. "spent a lot more time on a whiteboard sketching out dependencies"
  3. "hacking out some tfstate"

All essentially unacceptable. Even 2 which sounds reasonable is not an admissible replacement for plainly missing refactoring features.

The main issue I have run into is that when I encapsulate (a) resource(s) into a module terraform is unable to resolve the existing state with the new graph.

@phinze
Copy link
Contributor

phinze commented Oct 1, 2015

Hi there - totally agreed that the current state of the world is unacceptable. We've been discussing this over in #591 - check out the ideas for features to help support refactoring over there.

Closing this to keep the conversation rooted over there - feel free to join in!

@phinze phinze closed this as completed Oct 1, 2015
@jasonkuhrt
Copy link
Author

Ah thanks! Sorry for the dupe.

@ghost
Copy link

ghost commented Apr 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants