Skip to content

Instantly share code, notes, and snippets.

@sandor11
Created February 19, 2019 04:50
Show Gist options
  • Save sandor11/6d75e0e7639ddf25354efe8864e3f91c to your computer and use it in GitHub Desktop.
Save sandor11/6d75e0e7639ddf25354efe8864e3f91c to your computer and use it in GitHub Desktop.
Terraform output
aws_elastic_beanstalk_environment.default: Creation complete after 6m31s (ID: e-fnv6d5qa3v)
aws_load_balancer_policy.https: Creating...
load_balancer_name: "" => "awseb-e-f-AWSEBLoa-1953Z41YSDC91"
policy_attribute.#: "" => "1"
policy_attribute.1689615010.name: "" => "Reference-Security-Policy"
policy_attribute.1689615010.value: "" => "ELBSecurityPolicy-2016-08"
policy_name: "" => "hailer-api-sandbox-elb-https-policy"
policy_type_name: "" => "SSLNegotiationPolicyType"
aws_load_balancer_policy.https: Creation complete after 1s (ID: awseb-e-f-AWSEBLoa-1953Z41YSDC91:hailer-api-sandbox-elb-https-policy)
Error: Error applying plan:
1 error(s) occurred:
* aws_load_balancer_listener_policy.https: aws_load_balancer_listener_policy.https: 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.11.7
Resource ID: aws_load_balancer_listener_policy.https
Mismatch reason: extra attributes: load_balancer_name
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"policy_names.43773652":*terraform.ResourceAttrDiff{Old:"hailer-sandbox-elb-https-policy", New:"", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "policy_names.361733361":*terraform.ResourceAttrDiff{Old:"", New:"hailer-api-sandbox-elb-https-policy", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}}, Destroy:false, DestroyDeposed:false, DestroyTainted:false, Meta:map[string]interface {}(nil)}
Diff Two (usually from apply): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"load_balancer_name":*terraform.ResourceAttrDiff{Old:"awseb-e-z-AWSEBLoa-IIZWH3EYY3J2", New:"awseb-e-f-AWSEBLoa-1953Z41YSDC91", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "policy_names.43773652":*terraform.ResourceAttrDiff{Old:"hailer-sandbox-elb-https-policy", New:"", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "policy_names.361733361":*terraform.ResourceAttrDiff{Old:"", New:"hailer-api-sandbox-elb-https-policy", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}}, Destroy:false, DestroyDeposed:false, DestroyTainted:false, Meta:map[string]interface {}(nil)}
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment