Skip to content

Instantly share code, notes, and snippets.

@albertsun
Last active March 16, 2016 18:21
Show Gist options
  • Save albertsun/a13d8a75120219aa9575 to your computer and use it in GitHub Desktop.
Save albertsun/a13d8a75120219aa9575 to your computer and use it in GitHub Desktop.
terraform apply .tfplan
aws_instance.k8s-prd-worker-b.0: Creating...
ami: "" => "ami-1a642670"
availability_zone: "" => "<computed>"
ebs_block_device.#: "" => "<computed>"
ephemeral_block_device.#: "" => "<computed>"
instance_state: "" => "<computed>"
instance_type: "" => "m4.2xlarge"
key_name: "" => "everything"
placement_group: "" => "<computed>"
private_dns: "" => "<computed>"
private_ip: "" => "<computed>"
public_dns: "" => "<computed>"
public_ip: "" => "<computed>"
root_block_device.#: "" => "1"
root_block_device.0.delete_on_termination: "" => "1"
root_block_device.0.iops: "" => "<computed>"
root_block_device.0.volume_size: "" => "1000"
root_block_device.0.volume_type: "" => "gp2"
security_groups.#: "" => "3"
security_groups.1891126228: "" => "sg-3ade3f5c"
security_groups.2449502267: "" => "sg-3a09e85c"
security_groups.927752339: "" => "sg-9ab07bfe"
source_dest_check: "" => "1"
subnet_id: "" => "subnet-3cd75e4b"
tags.#: "" => "2"
tags.Desk: "" => "int"
tags.Name: "" => "k8s-prd-worker-b-1"
tenancy: "" => "<computed>"
user_data: "" => "55f5299b7c517e23e8399691a7c4c7d619001b02"
vpc_security_group_ids.#: "" => "<computed>"
aws_instance.k8s-prd-worker-b.0: Creation complete
Error applying plan:
2 error(s) occurred:
* aws_elb.k8s-prd-adm-elb: 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.12
Resource ID: aws_elb.k8s-prd-adm-elb
Mismatch reason: attribute mismatch: instances.416876270
Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"instances.#":*terraform.ResourceAttrDiff{Old:"6", New:"5", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1401722823":*terraform.ResourceAttrDiff{Old:"i-c42c5740", New:"", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3658884456":*terraform.ResourceAttrDiff{Old:"i-a2d77e14", New:"", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1100529129":*terraform.ResourceAttrDiff{Old:"i-70fee9ce", New:"i-70fee9ce", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.205848821":*terraform.ResourceAttrDiff{Old:"i-b8fee906", New:"i-b8fee906", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3214812142":*terraform.ResourceAttrDiff{Old:"i-ec4a115c", New:"i-ec4a115c", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3831335107":*terraform.ResourceAttrDiff{Old:"i-ed4a115d", New:"i-ed4a115d", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.416876270":*terraform.ResourceAttrDiff{Old:"", New:"${aws_instance.k8s-prd-worker-b.*.id}", 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{"instances.#":*terraform.ResourceAttrDiff{Old:"6", New:"7", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1100529129":*terraform.ResourceAttrDiff{Old:"i-70fee9ce", New:"i-70fee9ce", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1401722823":*terraform.ResourceAttrDiff{Old:"i-c42c5740", New:"i-c42c5740", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.205848821":*terraform.ResourceAttrDiff{Old:"i-b8fee906", New:"i-b8fee906", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3214812142":*terraform.ResourceAttrDiff{Old:"i-ec4a115c", New:"i-ec4a115c", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3658884456":*terraform.ResourceAttrDiff{Old:"i-a2d77e14", New:"i-a2d77e14", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3831335107":*terraform.ResourceAttrDiff{Old:"i-ed4a115d", New:"i-ed4a115d", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.999272036":*terraform.ResourceAttrDiff{Old:"", New:"i-bfbbc03b", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
Also include as much context as you can about your config, state, and the steps you performed to trigger this error.
* aws_elb.k8s-prd-pub-elb: 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.12
Resource ID: aws_elb.k8s-prd-pub-elb
Mismatch reason: attribute mismatch: instances.416876270
Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"instances.205848821":*terraform.ResourceAttrDiff{Old:"i-b8fee906", New:"i-b8fee906", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3214812142":*terraform.ResourceAttrDiff{Old:"i-ec4a115c", New:"i-ec4a115c", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3831335107":*terraform.ResourceAttrDiff{Old:"i-ed4a115d", New:"i-ed4a115d", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.416876270":*terraform.ResourceAttrDiff{Old:"", New:"${aws_instance.k8s-prd-worker-b.*.id}", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.#":*terraform.ResourceAttrDiff{Old:"6", New:"5", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1401722823":*terraform.ResourceAttrDiff{Old:"i-c42c5740", New:"", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3658884456":*terraform.ResourceAttrDiff{Old:"i-a2d77e14", New:"", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1100529129":*terraform.ResourceAttrDiff{Old:"i-70fee9ce", New:"i-70fee9ce", 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{"instances.3831335107":*terraform.ResourceAttrDiff{Old:"i-ed4a115d", New:"i-ed4a115d", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.999272036":*terraform.ResourceAttrDiff{Old:"", New:"i-bfbbc03b", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.#":*terraform.ResourceAttrDiff{Old:"6", New:"7", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1100529129":*terraform.ResourceAttrDiff{Old:"i-70fee9ce", New:"i-70fee9ce", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.1401722823":*terraform.ResourceAttrDiff{Old:"i-c42c5740", New:"i-c42c5740", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.205848821":*terraform.ResourceAttrDiff{Old:"i-b8fee906", New:"i-b8fee906", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3214812142":*terraform.ResourceAttrDiff{Old:"i-ec4a115c", New:"i-ec4a115c", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "instances.3658884456":*terraform.ResourceAttrDiff{Old:"i-a2d77e14", New:"i-a2d77e14", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
Also include as much context as you can about your config, state, and the steps you performed to trigger this error.
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
make: *** [apply] Error 1
Path: .tfplan
~ aws_elb.k8s-prd-adm-elb
instances.#: "6" => "5"
instances.1100529129: "i-70fee9ce" => "i-70fee9ce"
instances.1401722823: "i-c42c5740" => ""
instances.205848821: "i-b8fee906" => "i-b8fee906"
instances.3214812142: "i-ec4a115c" => "i-ec4a115c"
instances.3658884456: "i-a2d77e14" => ""
instances.3831335107: "i-ed4a115d" => "i-ed4a115d"
instances.416876270: "" => "${aws_instance.k8s-prd-worker-b.*.id}"
~ aws_elb.k8s-prd-pub-elb
instances.#: "6" => "5"
instances.1100529129: "i-70fee9ce" => "i-70fee9ce"
instances.1401722823: "i-c42c5740" => ""
instances.205848821: "i-b8fee906" => "i-b8fee906"
instances.3214812142: "i-ec4a115c" => "i-ec4a115c"
instances.3658884456: "i-a2d77e14" => ""
instances.3831335107: "i-ed4a115d" => "i-ed4a115d"
instances.416876270: "" => "${aws_instance.k8s-prd-worker-b.*.id}"
+ aws_instance.k8s-prd-worker-b.0
ami: "" => "ami-1a642670"
availability_zone: "" => "<computed>"
ebs_block_device.#: "" => "<computed>"
ephemeral_block_device.#: "" => "<computed>"
instance_state: "" => "<computed>"
instance_type: "" => "m4.2xlarge"
key_name: "" => "everything"
placement_group: "" => "<computed>"
private_dns: "" => "<computed>"
private_ip: "" => "<computed>"
public_dns: "" => "<computed>"
public_ip: "" => "<computed>"
root_block_device.#: "" => "1"
root_block_device.0.delete_on_termination: "" => "1"
root_block_device.0.iops: "" => "<computed>"
root_block_device.0.volume_size: "" => "1000"
root_block_device.0.volume_type: "" => "gp2"
security_groups.#: "" => "3"
security_groups.1891126228: "" => "sg-3ade3f5c"
security_groups.2449502267: "" => "sg-3a09e85c"
security_groups.927752339: "" => "sg-9ab07bfe"
source_dest_check: "" => "1"
subnet_id: "" => "subnet-3cd75e4b"
tags.#: "" => "2"
tags.Desk: "" => "int"
tags.Name: "" => "k8s-prd-worker-b-1"
tenancy: "" => "<computed>"
user_data: "" => "55f5299b7c517e23e8399691a7c4c7d619001b02"
vpc_security_group_ids.#: "" => "<computed>"
Plan: 1 to add, 2 to change, 0 to destroy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment