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

attribute mismatch: associate_public_ip_address (true vs. 1) #5956

Closed
rhettg opened this issue Mar 31, 2016 · 4 comments
Closed

attribute mismatch: associate_public_ip_address (true vs. 1) #5956

rhettg opened this issue Mar 31, 2016 · 4 comments
Labels

Comments

@rhettg
Copy link

rhettg commented Mar 31, 2016

My VPC state got stuck in some weird state due to a mismatch between true and 1:

~ module.vpc_lab.aws_instance.vpn
    associate_public_ip_address: "true" => "1"
    source_dest_check:           "true" => "1"

~ module.vpc_lab.aws_route53_record.vpn0
    records.#: "" => "<computed>"

When applying:

Error applying plan:

1 error(s) occurred:

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

Please include the following information in your report:

    Terraform Version: 0.6.14
    Resource ID: aws_instance.vpn
    Mismatch reason: attribute mismatch: associate_public_ip_address
    Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"source_dest_check":*terraform.ResourceAttrDiff{Old:"true", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "associate_public_ip_address":*terraform.ResourceAttrDiff{Old:"true", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
    Diff Two (usually from apply): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff(nil), Destroy:false, DestroyTainted:false}

This is in us-east-1. Maybe there is some API bug?

@catsby catsby added the core label Mar 31, 2016
@theturtle32
Copy link

I'm seeing something similar. us-west-2 here.

~ module.redis_arm.aws_instance.redis_master
    disable_api_termination:                   "false" => "0"
    ebs_optimized:                             "true" => "1"
    monitoring:                                "true" => "1"
    root_block_device.0.delete_on_termination: "true" => "1"
    source_dest_check:                         "true" => "1"

~ module.redis_arm.aws_instance.redis_slave.0
    disable_api_termination:                   "false" => "0"
    ebs_optimized:                             "true" => "1"
    monitoring:                                "true" => "1"
    root_block_device.0.delete_on_termination: "true" => "1"
    source_dest_check:                         "true" => "1"

~ module.redis_arm.aws_instance.redis_slave.1
    disable_api_termination:                   "false" => "0"
    ebs_optimized:                             "true" => "1"
    monitoring:                                "true" => "1"
    root_block_device.0.delete_on_termination: "true" => "1"
    source_dest_check:                         "true" => "1"

Possibly related to setting the following on my aws_instance resources?

  lifecycle {
    ignore_changes = [ "user_data" ]
  }

@theturtle32
Copy link

If I try to apply, I get this:

Error applying plan:

1 error(s) occurred:

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

Please include the following information in your report:

    Terraform Version: 0.6.14
    Resource ID: aws_instance.redis_master
    Mismatch reason: attribute mismatch: disable_api_termination
    Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"ebs_optimized":*terraform.ResourceAttrDiff{Old:"true", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "disable_api_termination":*terraform.ResourceAttrDiff{Old:"false", New:"0", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "monitoring":*terraform.ResourceAttrDiff{Old:"true", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "root_block_device.0.delete_on_termination":*terraform.ResourceAttrDiff{Old:"true", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "source_dest_check":*terraform.ResourceAttrDiff{Old:"true", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
    Diff Two (usually from apply): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff(nil), Destroy:false, DestroyTainted:false}

@mitchellh
Copy link
Contributor

This should be fixed in the latest version of Terraform.

@ghost
Copy link

ghost commented Apr 19, 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 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants