Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Fixed bug in ECS ASG based on hashicorp issue: 16632 #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ Usage:
security_groups = "1,2"
iam_instance_profile = "id"
region = "us-west-2"
availability_zones = ["a", "b"]
instance_type = "t2.small"
}

Expand All @@ -248,7 +247,6 @@ Usage:
| security_groups | Comma separated list of security groups | - | yes |
| iam_instance_profile | Instance profile ARN to use in the launch configuration | - | yes |
| region | AWS Region | - | yes |
| availability_zones | List of AZs | - | yes |
| instance_type | The instance type to use, e.g t2.small | - | yes |
| instance_ebs_optimized | When set to true the instance will be launched with EBS optimized turned on | `true` | no |
| min_size | Minimum instance count | `3` | no |
Expand Down
7 changes: 0 additions & 7 deletions ecs-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* security_groups = "1,2"
* iam_instance_profile = "id"
* region = "us-west-2"
* availability_zones = ["a", "b"]
* instance_type = "t2.small"
* }
*
Expand Down Expand Up @@ -62,11 +61,6 @@ variable "region" {
description = "AWS Region"
}

variable "availability_zones" {
description = "List of AZs"
type = "list"
}

variable "instance_type" {
description = "The instance type to use, e.g t2.small"
}
Expand Down Expand Up @@ -223,7 +217,6 @@ resource "aws_launch_configuration" "main" {
resource "aws_autoscaling_group" "main" {
name = "${var.name}"

availability_zones = ["${var.availability_zones}"]
vpc_zone_identifier = ["${var.subnet_ids}"]
launch_configuration = "${aws_launch_configuration.main.id}"
min_size = "${var.min_size}"
Expand Down
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ module "ecs_cluster" {
max_size = "${var.ecs_max_size}"
desired_capacity = "${var.ecs_desired_capacity}"
region = "${var.region}"
availability_zones = "${module.vpc.availability_zones}"
root_volume_size = "${var.ecs_root_volume_size}"
docker_volume_size = "${var.ecs_docker_volume_size}"
docker_auth_type = "${var.ecs_docker_auth_type}"
Expand Down