terraform-community-modules/tf_aws_ecs

[BUG] The argument "tags" was already set at .terraform/modules/ecs-cluster/main.tf:62,3-7. Each argument may be set only once.

Dzhuneyt opened this issue · 0 comments

Error: Attribute redefined

  on .terraform/modules/ecs-cluster/main.tf line 68, in resource "aws_autoscaling_group" "ecs":
  68:   tags = ["${var.extra_tags}"]

The argument "tags" was already set at
.terraform/modules/ecs-cluster/main.tf:62,3-7. Each argument may be set only
once.

I get this error while trying a terraform plan on the following main.tf:

provider "aws" {
  region = "us-east-1"
}

module "ecs-cluster" {
  source = "github.com/terraform-community-modules/tf_aws_ecs"
  name = "infra-services"
  servers = 2
  subnet_id = [
    "subnet-6e101446"]
  vpc_id = "vpc-99e73dfc"
  extra_tags = [
    {
      key = "consul_server"
      value = "true"
      propagate_at_launch = true
    },
  ]
}