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

Error updating Autoscaling group: minimum field size of 1, UpdateAutoScalingGroupInput.VPCZoneIdentifier #548

Closed
hashibot opened this issue Jun 13, 2017 · 2 comments
Labels
bug Addresses a defect in current functionality. service/autoscaling Issues and PRs that pertain to the autoscaling service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@hashibot
Copy link

This issue was originally opened by @brikis98 as hashicorp/terraform#12150. It was migrated here as part of the provider split. The original body of the issue is below.


Terraform Version

Terraform v0.8.6

Affected Resource(s)

  • aws_autoscaling_group

Terraform Configuration Files

In a module, I have the following:

resource "aws_autoscaling_group" "autoscaling_group" {
  launch_configuration = "${aws_launch_configuration.launch_configuration.name}"

  availability_zones  = ["${var.availability_zones}"]
  vpc_zone_identifier = ["${var.subnet_ids}"]

  min_size             = 3
  max_size             = 3
  desired_capacity     = 3
}

variable "availability_zones" {
  type = "list"
  default = []
}

variable "subnet_ids" {
  type = "list"
  default = []
}

My usage of the module looks something like this:

module "foo" {
  source = "modules/foo"

  availability_zones = ["${data.aws_availability_zones.all.names}"]
}

data "aws_availability_zones" "all" {}

Expected Behavior

  1. I should be able to run terraform apply without errors.
  2. I should be able to run terraform plan after the initial apply and see no changes.

Actual Behavior

  1. I am able to run terraform apply without errors.

  2. When I run terraform plan, I see the following diff, even though I haven't changed anything:

    ~ module.consul.aws_autoscaling_group.autoscaling_group
        vpc_zone_identifier.#: "1" => "0"
        vpc_zone_identifier.0: "" => ""
    

    Even worse, if I run terraform apply now, I get an error:

    * aws_autoscaling_group.autoscaling_group: Error updating Autoscaling group: InvalidParameter: 1 validation error(s) found.
    - minimum field size of 1, UpdateAutoScalingGroupInput.VPCZoneIdentifier.
    

This makes it impossible to apply any further changes.

Steps to Reproduce

  1. terraform apply
  2. terraform plan
  3. terraform apply

References

@hashibot hashibot added the bug Addresses a defect in current functionality. label Jun 13, 2017
@radeksimko radeksimko added the service/autoscaling Issues and PRs that pertain to the autoscaling service. label Jan 25, 2018
@github-actions
Copy link

github-actions bot commented Apr 2, 2020

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Apr 2, 2020
@github-actions github-actions bot closed this as completed May 4, 2020
@ghost
Copy link

ghost commented Jun 4, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/autoscaling Issues and PRs that pertain to the autoscaling service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
Development

No branches or pull requests

2 participants