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

feat: add moved resources to changed resources #881

Merged
merged 1 commit into from
Sep 2, 2023

Conversation

suzuki-shunsuke
Copy link
Owner

@suzuki-shunsuke suzuki-shunsuke commented Sep 2, 2023

Parse the output of terraform plan and extract moved resources.

e.g.

  # null_resource.foo has moved to null_resource.bar

Add the template variable MovedResources, which is a list of moved resources.

e.g.

MovedResources:
  - Before: null_resource.foo
    After: null_resource.bar

Add the list of moved resources to the built in template updated_resources.

Example

* Move
  * null_resource.foo => null_resource.bar

Plan Result

Plan: 0 to add, 0 to change, 0 to destroy.
  • Move
    • null_resource.foo => null_resource.bar
Change Result (Click me)
  # null_resource.foo has moved to null_resource.bar
    resource "null_resource" "bar" {
        id = "4394414639163400357"
    }

Plan: 0 to add, 0 to change, 0 to destroy.

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

Successfully merging this pull request may close these issues.

Add moved to the list of changed resources
1 participant