Skip to content

ignore_changes still says it plans to destroy even though it doesn't #6720

Closed
@ahodges22

Description

@ahodges22

Follow up from #3555

I'm running the latest version of Terraform (v0.6.16), and when managing AWS instances and setting it to ignore AMI changes with this:

  lifecycle {
        ignore_changes = ["ami"]
    }

I still have it telling me it's planning on destroying my instances when I update the AMI ID to something new:

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

I created a test instance to see if it would actually destroy the instance, and it doesn't. However I'd like to have it not say # to destroy on Terraform Plan if it is not actually planning on destroying these instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions