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

ignore_changes Prevents New Box From Launching #4912

Closed
jamescarr opened this issue Jan 30, 2016 · 3 comments
Closed

ignore_changes Prevents New Box From Launching #4912

jamescarr opened this issue Jan 30, 2016 · 3 comments

Comments

@jamescarr
Copy link

I have the following aws_instance definition:

resource "aws_instance" "graylog_server" {
    ami = "${var.graylog_server_next_image}"
    instance_type = "m3.medium"
    key_name = "failsafe"
    iam_instance_profile = "${aws_iam_instance_profile.graylog_profile.name}"
    vpc_security_group_ids = ["${aws_security_group.logging.id}"]
    subnet_id = "${aws_subnet.private-us-east-1b.id}"
    tags {
      "role" = "graylog_server"
    }
    lifecycle {
        ignore_changes = ["tags"]
    }


If I try to apply this I get

* aws_instance.graylog_server: diffs didn't match during apply. This is a bug with Terraform and should be reported.

Removing the ignore_changes attribute allows me to launch, after which point I can add it back. It works unless the instance is being replaced it seems.

@jamescarr
Copy link
Author

Yeah after doing several replacements this evening I've come to realize that ignore_changes is useless with this defect since I need to remove it every time an instance is replaced and then add it back afterward so tags aren't messed with on future runs.

@phinze
Copy link
Contributor

phinze commented Mar 14, 2016

Hi @jamescarr - I believe this particular ignore_changes issue should be solved. I'm working on addressing additional problems w/ the field over in #5627

@phinze phinze closed this as completed Mar 14, 2016
@ghost
Copy link

ghost commented Apr 27, 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.

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

No branches or pull requests

3 participants