aws_autoscaling_group – diffs didn’t match during apply. This is a bug with Terraform

happens when you have code like this:

resource "aws_autoscaling_group" "my_asg" {
  name                 = "my_asg"
  launch_configuration = "${aws_launch_configuration.my_launch_config.name}"
  min_size             = 1
  max_size             = 1
  availability_zones = "${var.availability_zones}"

  vpc_zone_identifier = ["${aws_subnet.public-subnet.id}"]

Seems you can’t mix availability_zones¬†and vpc_zone_identifier.

https://github.com/terraform-providers/terraform-provider-aws/issues/4801

Leave a Reply

Your email address will not be published. Required fields are marked *