Add `min_size` and `max_size` ASG fields (#13312)

These are required fields
```
$ terraform plan
2 error(s) occurred:

* aws_autoscaling_group.bar: "max_size": required field is not set
* aws_autoscaling_group.bar: "min_size": required field is not set
```
This commit is contained in:
Casey Leask 2017-04-04 17:24:01 +10:00 committed by Paul Stack
parent b1fd1c0ba3
commit e3d4c237a9
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ resource "aws_launch_configuration" "as_conf" {
resource "aws_autoscaling_group" "bar" {
name = "terraform-asg-example"
launch_configuration = "${aws_launch_configuration.as_conf.name}"
min_size = 1
max_size = 2
lifecycle {
create_before_destroy = true