-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
aws_autoscaling_group.web_asg: aws_autoscaling_group.web_asg: diffs didn't match during apply. #16632
Comments
Have the same error with aws_autoscalling_group Using https://github.com/segmentio/stack configuration
|
I commented availability_zones line and now it’s ok.
resource "aws_autoscaling_group" "web_asg" {
launch_configuration = "${aws_launch_configuration.web_lc.id}"
min_size = "${var.web_inst_min_count}"
max_size = "${var.web_inst_max_count}"
# availability_zones = ["${var.default_AZ}"]
vpc_zone_identifier = ["${aws_subnet.subnet_for_app.id}"]
tag {
key = "Name"
value = "web-asg"
propagate_at_launch = true
}
}
… On 13 Nov 2017, at 01:11, Dmytro Vorotyntsev ***@***.***> wrote:
Have the same error with aws_autoscalling_group
Using https://github.com/segmentio/stack <https://github.com/segmentio/stack> configuration
Error: Error applying plan:
1 error(s) occurred:
* module.stack.module.ecs_cluster.module.ecs_cluster.aws_autoscaling_group.main: aws_autoscaling_group.main: 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.10.8
Resource ID: aws_autoscaling_group.main
Mismatch reason: attribute mismatch: availability_zones.3953592328
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"name":*terraform.ResourceAttrDiff{Old:"", New:"pb-clus
ter", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "health_check_grace_period":*terraform.ResourceAttrDiff{Old:"", New:"300", NewCo
mputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "desired_capacity":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemo
ved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.996329934.value":*terraform.ResourceAttrDiff{Old:"", New:"pb-cluster", NewComputed:false, NewRemoved:false
, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "termination_policies.#":*terraform.ResourceAttrDiff{Old:"", New:"2", NewComputed:false, NewRemoved:false, NewExtra:inte
rface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.776695200.propagate_at_launch":*terraform.ResourceAttrDiff{Old:"", New:"true", NewComputed:false, NewRemoved:false, NewExtra:inter
face {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "wait_for_capacity_timeout":*terraform.ResourceAttrDiff{Old:"", New:"10m", NewComputed:false, NewRemoved:false, NewExtra:interface {}(ni
l), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.996329934.key":*terraform.ResourceAttrDiff{Old:"", New:"Name", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:f
alse, Sensitive:false, Type:0x0}, "availability_zones.3953592328":*terraform.ResourceAttrDiff{Old:"", New:"eu-west-1a", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:
false, Sensitive:false, Type:0x0}, "max_size":*terraform.ResourceAttrDiff{Old:"", New:"3", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:
0x0}, "termination_policies.1":*terraform.ResourceAttrDiff{Old:"", New:"Default", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "me
trics_granularity":*terraform.ResourceAttrDiff{Old:"", New:"1Minute", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "termination_po
licies.0":*terraform.ResourceAttrDiff{Old:"", New:"OldestLaunchConfiguration", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.7
76695200.value":*terraform.ResourceAttrDiff{Old:"", New:"dev", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "availability_zones.#"
:*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "default_cooldown":*terraform.ResourceA
ttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.996329934.propagate_at_launch":*terraform.ResourceAttrDif
f{Old:"", New:"true", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "min_size":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComp
uted:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.#":*terraform.ResourceAttrDiff{Old:"", New:"3", NewComputed:false, NewRemoved:false, Ne
wExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.2040391620.propagate_at_launch":*terraform.ResourceAttrDiff{Old:"", New:"true", NewComputed:false, NewRemoved:false, Ne
wExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "load_balancers.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil
), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.2040391620.value":*terraform.ResourceAttrDiff{Old:"", New:"pb-cluster", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), Requi
resNew:false, Sensitive:false, Type:0x0}, "launch_configuration":*terraform.ResourceAttrDiff{Old:"", New:"${aws_launch_configuration.main.id}", NewComputed:true, NewRemoved:false, NewExtra:interfac
e {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.776695200.key":*terraform.ResourceAttrDiff{Old:"", New:"Environment", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil),
RequiresNew:false, Sensitive:false, Type:0x0}, "protect_from_scale_in":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew
:false, Sensitive:false, Type:0x0}, "target_group_arns.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:fa
lse, Type:0x0}, "arn":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "vpc_zone_identifier
.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "force_delete":*terraform.ResourceAttr
Diff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.2040391620.key":*terraform.ResourceAttrDiff{Old:"", Ne
w:"Cluster", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "health_check_type":*terraform.ResourceAttrDiff{Old:"", New:"", NewCompu
ted:true, 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{"target_group_arns.#":*terraform.ResourceAttrDiff{Old:
"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.776695200.propagate_at_launch":*terraform.ResourceAttrDiff{Old:"", Ne
w:"true", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "default_cooldown":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:
true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.996329934.key":*terraform.ResourceAttrDiff{Old:"", New:"Name", NewComputed:false, NewRemoved:
false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "termination_policies.#":*terraform.ResourceAttrDiff{Old:"", New:"2", NewComputed:false, NewRemoved:false, NewExtra
:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "force_delete":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), R
equiresNew:false, Sensitive:false, Type:0x0}, "load_balancers.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensi
tive:false, Type:0x0}, "wait_for_capacity_timeout":*terraform.ResourceAttrDiff{Old:"", New:"10m", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false
, Type:0x0}, "desired_capacity":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.776
695200.value":*terraform.ResourceAttrDiff{Old:"", New:"dev", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.2040391620.propagat
e_at_launch":*terraform.ResourceAttrDiff{Old:"", New:"true", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "max_size":*terraform.Re
sourceAttrDiff{Old:"", New:"3", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.996329934.value":*terraform.ResourceAttrDiff{Old
:"", New:"pb-cluster", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "health_check_type":*terraform.ResourceAttrDiff{Old:"", New:""
, NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "protect_from_scale_in":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed
:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "vpc_zone_identifier.#":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemov
ed:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "termination_policies.0":*terraform.ResourceAttrDiff{Old:"", New:"OldestLaunchConfiguration", NewComputed:false,
NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.2040391620.value":*terraform.ResourceAttrDiff{Old:"", New:"pb-cluster", NewComputed:false, NewRemo
ved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "vpc_zone_identifier.4279456599":*terraform.ResourceAttrDiff{Old:"", New:"subnet-da016781", NewComputed:false,
NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "min_size":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:in
terface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "metrics_granularity":*terraform.ResourceAttrDiff{Old:"", New:"1Minute", NewComputed:false, NewRemoved:false, NewExtra:interface {}(n
il), RequiresNew:false, Sensitive:false, Type:0x0}, "health_check_grace_period":*terraform.ResourceAttrDiff{Old:"", New:"300", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), Requi
resNew:false, Sensitive:false, Type:0x0}, "tag.2040391620.key":*terraform.ResourceAttrDiff{Old:"", New:"Cluster", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false,
Sensitive:false, Type:0x0}, "tag.#":*terraform.ResourceAttrDiff{Old:"", New:"3", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ta
g.776695200.key":*terraform.ResourceAttrDiff{Old:"", New:"Environment", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "launch_confi
guration":*terraform.ResourceAttrDiff{Old:"", New:"pb-cluster-20171112220637573900000002", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:
0x0}, "name":*terraform.ResourceAttrDiff{Old:"", New:"pb-cluster", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "arn":*terraform.Re
sourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tag.996329934.propagate_at_launch":*terraform.Resource
AttrDiff{Old:"", New:"true", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "termination_policies.1":*terraform.ResourceAttrDiff{Old
:"", New:"Default", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}}, Destroy:false, DestroyDeposed:false, DestroyTainted:false, Meta:
map[string]interface {}(nil)}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#16632 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AP2L3paoTD1cMRUnHUxkKfzyd4NNHUM6ks5s120EgaJpZM4Qa607>.
|
I'm also using segmentio/stack as a base config (like @vorotech mentioned earlier), and don't think I can work around this without overriding a lot of stuff, which somewhat defeats the reusability of a terraform module :-/ There are multiple issues about AWS autoscaling diffs going back a few months, and the suggested workaround doesn't seem to work for everyone (see this). Can someone on the hashicorp throw some light on this? @bflad? |
I seem to be getting the same issue, even after I followed @d-helios workaround |
I have t he same issue. Error: Error applying plan: 1 error(s) occurred:
Please include the following information in your report:
|
I originally had: resource "aws_autoscaling_group" "linux_cluster_autoscaling_group" { But changed the min_size and desired_capacity to 2 After I re-ran it worked. |
Same problem here.
I re-ran the plan without making any changes and it worked. |
Hi @everyone. 👋 Sorry you are running into trouble here. Up until a few days ago, the To fix your situation, simply remove the |
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. |
errorlog:
here is my configuration:
https://www.dropbox.com/s/8k35nf9pnm0wxkj/TF-Tests.tgz?dl=0
terraform version: v0.10.8
The text was updated successfully, but these errors were encountered: